mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 10:52:23 +00:00
fix PARANOIA builds
This commit is contained in:
parent
3add792986
commit
4e78617c29
2 changed files with 3 additions and 3 deletions
|
@ -2404,7 +2404,7 @@ static void P_NetArchiveThinkers(void)
|
|||
}
|
||||
#endif // ESLOPE
|
||||
#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);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -197,7 +197,7 @@ void P_InitThinkers(void)
|
|||
void P_AddThinker(const thinklistnum_t n, thinker_t *thinker)
|
||||
{
|
||||
#ifdef PARANOIA
|
||||
I_Assert(n >= 0 && n < NUM_THINKERLISTS);
|
||||
I_Assert(n < NUM_THINKERLISTS);
|
||||
#endif
|
||||
|
||||
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)
|
||||
{
|
||||
#ifdef PARANOIA
|
||||
I_Assert(currentthinker->function.acp1 != NULL)
|
||||
I_Assert(currentthinker->function.acp1 != NULL);
|
||||
#endif
|
||||
currentthinker->function.acp1(currentthinker);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue