fix PARANOIA builds
This commit is contained in:
parent
3add792986
commit
4e78617c29
|
@ -2404,7 +2404,7 @@ static void P_NetArchiveThinkers(void)
|
||||||
}
|
}
|
||||||
#endif // ESLOPE
|
#endif // ESLOPE
|
||||||
#ifdef PARANOIA
|
#ifdef PARANOIA
|
||||||
else if (th->function.acp1 != P_RemoveThinkerDelayed) // wait garbage collection
|
else if (th->function.acp1 != (actionf_p1)P_RemoveThinkerDelayed) // wait garbage collection
|
||||||
I_Error("unknown thinker type %p", th->function.acp1);
|
I_Error("unknown thinker type %p", th->function.acp1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -197,7 +197,7 @@ void P_InitThinkers(void)
|
||||||
void P_AddThinker(const thinklistnum_t n, thinker_t *thinker)
|
void P_AddThinker(const thinklistnum_t n, thinker_t *thinker)
|
||||||
{
|
{
|
||||||
#ifdef PARANOIA
|
#ifdef PARANOIA
|
||||||
I_Assert(n >= 0 && n < NUM_THINKERLISTS);
|
I_Assert(n < NUM_THINKERLISTS);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
thlist[n].prev->next = thinker;
|
thlist[n].prev->next = thinker;
|
||||||
|
@ -326,7 +326,7 @@ static inline void P_RunThinkers(void)
|
||||||
for (currentthinker = thlist[i].next; currentthinker != &thlist[i]; currentthinker = currentthinker->next)
|
for (currentthinker = thlist[i].next; currentthinker != &thlist[i]; currentthinker = currentthinker->next)
|
||||||
{
|
{
|
||||||
#ifdef PARANOIA
|
#ifdef PARANOIA
|
||||||
I_Assert(currentthinker->function.acp1 != NULL)
|
I_Assert(currentthinker->function.acp1 != NULL);
|
||||||
#endif
|
#endif
|
||||||
currentthinker->function.acp1(currentthinker);
|
currentthinker->function.acp1(currentthinker);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue