mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-22 05:21:11 +00:00
Merge branch 'fix-saveg-diff2-uninitialized' into 'master'
SaveMobjThinker: fix diff2 uninitialized See merge request KartKrew/Kart!1290
This commit is contained in:
commit
4f6db19100
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)
|
||||
return;
|
||||
|
||||
diff2 = 0;
|
||||
|
||||
if (mobj->spawnpoint)
|
||||
{
|
||||
// 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
|
||||
if (mobj->momx != 0 || mobj->momy != 0 || mobj->momz != 0 || mobj->pmomz != 0)
|
||||
diff |= MD_MOM;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue