From d0df038ad88cc49317b6db68283b462ba628be9b Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 26 Nov 2024 22:32:16 +0100 Subject: [PATCH] funny debug print --- src/p_tick.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_tick.c b/src/p_tick.c index ccb577d5f..486fc2e0b 100644 --- a/src/p_tick.c +++ b/src/p_tick.c @@ -255,6 +255,9 @@ void P_UnlinkThinker(thinker_t *thinker) (next->prev = thinker->prev)->next = next; + if (thinker->cachable != true && thinker->cachable != false) + CONS_Alert(CONS_ERROR, "P_UnlinkThinker: weird value for cachable = %d\n", thinker->cachable); + if (thinker->cachable == true) { // put cachable thinkers in the mobj cache, so we can avoid allocations @@ -267,7 +270,6 @@ void P_UnlinkThinker(thinker_t *thinker) } } - // // P_RemoveThinker //