From b808fde260e82f42b2706d1bfde3af540674087f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustaf=20Alh=C3=A4ll?= Date: Sat, 28 Oct 2023 14:25:31 +0200 Subject: [PATCH] Fix broken titlescreen for MT_ALTVIEWMAN mobjs --- src/p_mobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 7a089a956..382e207d8 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -10882,7 +10882,7 @@ mobj_t *P_SpawnMobj(fixed_t x, fixed_t y, fixed_t z, mobjtype_t type, ...) // increment mobj reference, so we don't get a dangling reference in case MobjSpawn calls P_RemoveMobj mobj->thinker.references++; - if (!(mobj->flags & MF_NOTHINK)) + if (!(mobj->flags & MF_NOTHINK) || (titlemapinaction && mobj->type == MT_ALTVIEWMAN)) P_AddThinker(THINK_MOBJ, &mobj->thinker); // DANGER! This can cause P_SpawnMobj to return NULL!