mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 10:52:23 +00:00
Fix MOBJCONSISTANCY and make it optional in DEBUGMODE
MOBJCONSISTANCY checks confined to gamestate GS_LEVEL. DEBUGMODE no longer implicitly enables them, making it netgame-compatible.
This commit is contained in:
parent
205ccc2727
commit
90611ed547
2 changed files with 3 additions and 1 deletions
|
@ -415,7 +415,7 @@ ifdef GCC48
|
|||
else
|
||||
CFLAGS+=-O0
|
||||
endif
|
||||
CFLAGS+= -Wall -DPARANOIA -DRANGECHECK -DPACKETDROP -DMOBJCONSISTANCY
|
||||
CFLAGS+= -Wall -DPARANOIA -DRANGECHECK -DPACKETDROP
|
||||
else
|
||||
|
||||
|
||||
|
|
|
@ -4480,6 +4480,7 @@ static INT16 Consistancy(void)
|
|||
ret += P_GetRandSeed();
|
||||
|
||||
#ifdef MOBJCONSISTANCY
|
||||
if (gamestate == GS_LEVEL) {
|
||||
for (th = thlist[THINK_MOBJ].next; th != &thlist[THINK_MOBJ]; th = th->next)
|
||||
{
|
||||
if (th->function.acp1 == (actionf_p1)P_RemoveThinkerDelayed)
|
||||
|
@ -4546,6 +4547,7 @@ static INT16 Consistancy(void)
|
|||
ret += mo->frame;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
DEBFILE(va("Consistancy = %u\n", (ret & 0xFFFF)));
|
||||
|
|
Loading…
Reference in a new issue