ah, turns out the TIC n debugfile print is a remnant of when Doom Legacy printed the consistancy return value... which we'll do here now too, in that case

This commit is contained in:
Monster Iestyn 2017-06-10 17:09:08 +01:00
parent bae55a3af4
commit 02c098574c

View file

@ -4077,7 +4077,7 @@ static INT16 Consistancy(void)
mobj_t *mo;
#endif
DEBFILE(va("TIC %u\n", gametic));
DEBFILE(va("TIC %u ", gametic));
for (i = 0; i < MAXPLAYERS; i++)
{
@ -4099,7 +4099,10 @@ static INT16 Consistancy(void)
#ifdef MOBJCONSISTANCY
if (!thinkercap.next)
{
DEBFILE(va("Consistancy = %u\n", ret));
return ret;
}
for (th = thinkercap.next; th != &thinkercap; th = th->next)
{
if (th->function.acp1 != (actionf_p1)P_MobjThinker)
@ -4168,6 +4171,8 @@ static INT16 Consistancy(void)
}
#endif
DEBFILE(va("Consistancy = %u\n", (ret & 0xFFFF)));
return (INT16)(ret & 0xFFFF);
}