Fix broken titlescreen for MT_ALTVIEWMAN mobjs

This commit is contained in:
Gustaf Alhäll 2023-10-28 14:25:31 +02:00 committed by Hanicef
parent 5c2821fb10
commit b808fde260

View file

@ -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!