mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-01 08:51:21 +00:00
Do not include MT_SPARK in netsave
This commit is contained in:
parent
4fd17489a5
commit
3272b3a284
3 changed files with 12 additions and 4 deletions
|
|
@ -5300,7 +5300,7 @@ const char *const MOBJTYPE_LIST[] = { // array length left dynamic for sanity t
|
|||
"MT_SKYBOX",
|
||||
|
||||
// Debris
|
||||
"MT_SPARK", //spark
|
||||
"MT_SPARK", //spark, only used for debugging, actually
|
||||
"MT_EXPLODE", // Robot Explosion
|
||||
"MT_UWEXPLODE", // Underwater Explosion
|
||||
"MT_DUST",
|
||||
|
|
|
|||
|
|
@ -6381,7 +6381,7 @@ typedef enum mobj_type
|
|||
MT_SKYBOX,
|
||||
|
||||
// Debris
|
||||
MT_SPARK, //spark
|
||||
MT_SPARK, //spark, only used for debugging, actually
|
||||
MT_EXPLODE, // Robot Explosion
|
||||
MT_UWEXPLODE, // Underwater Explosion
|
||||
MT_DUST,
|
||||
|
|
|
|||
|
|
@ -2283,6 +2283,10 @@ static void SaveMobjThinker(savebuffer_t *save, const thinker_t *th, const UINT8
|
|||
if (mobj->type == MT_HOOPCENTER && mobj->threshold == 4242)
|
||||
return;
|
||||
|
||||
// MT_SPARK: used for debug stuff
|
||||
if (mobj->type == MT_SPARK)
|
||||
return;
|
||||
|
||||
if (mobj->spawnpoint)
|
||||
{
|
||||
// spawnpoint is not modified but we must save it since it is an identifier
|
||||
|
|
@ -4815,7 +4819,9 @@ static void P_RelinkPointers(void)
|
|||
|
||||
mobj = (mobj_t *)currentthinker;
|
||||
|
||||
if (mobj->type == MT_HOOP || mobj->type == MT_HOOPCOLLIDE || mobj->type == MT_HOOPCENTER)
|
||||
if (mobj->type == MT_HOOP || mobj->type == MT_HOOPCOLLIDE || mobj->type == MT_HOOPCENTER
|
||||
// MT_SPARK: used for debug stuff
|
||||
|| mobj->type == MT_SPARK)
|
||||
continue;
|
||||
|
||||
if (mobj->tracer)
|
||||
|
|
@ -5537,7 +5543,9 @@ void P_SaveNetGame(savebuffer_t *save, boolean resending)
|
|||
continue;
|
||||
|
||||
mobj = (mobj_t *)th;
|
||||
if (mobj->type == MT_HOOP || mobj->type == MT_HOOPCOLLIDE || mobj->type == MT_HOOPCENTER)
|
||||
if (mobj->type == MT_HOOP || mobj->type == MT_HOOPCOLLIDE || mobj->type == MT_HOOPCENTER
|
||||
// MT_SPARK: used for debug stuff
|
||||
|| mobj->type == MT_SPARK)
|
||||
continue;
|
||||
mobj->mobjnum = i++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue