mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
SaveMobjThinker: fix diff2 uninitialized
This commit is contained in:
parent
5eeb29d552
commit
86be5f7354
1 changed files with 2 additions and 2 deletions
|
|
@ -2355,6 +2355,8 @@ static void SaveMobjThinker(savebuffer_t *save, const thinker_t *th, const UINT8
|
||||||
if (mobj->type == MT_SPARK)
|
if (mobj->type == MT_SPARK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
diff2 = 0;
|
||||||
|
|
||||||
if (mobj->spawnpoint)
|
if (mobj->spawnpoint)
|
||||||
{
|
{
|
||||||
// spawnpoint is not modified but we must save it since it is an identifier
|
// spawnpoint is not modified but we must save it since it is an identifier
|
||||||
|
|
@ -2408,8 +2410,6 @@ static void SaveMobjThinker(savebuffer_t *save, const thinker_t *th, const UINT8
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
diff2 = 0;
|
|
||||||
|
|
||||||
// not the default but the most probable
|
// not the default but the most probable
|
||||||
if (mobj->momx != 0 || mobj->momy != 0 || mobj->momz != 0 || mobj->pmomz != 0)
|
if (mobj->momx != 0 || mobj->momy != 0 || mobj->momz != 0 || mobj->pmomz != 0)
|
||||||
diff |= MD_MOM;
|
diff |= MD_MOM;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue