Skip to content

Commit

Permalink
Fix Lost Souls still spawning when nomonsters used...
Browse files Browse the repository at this point in the history
...if count kill flag not set (as happens in comatose.wad).
  • Loading branch information
bradharding committed Nov 29, 2024
1 parent 8f9afd7 commit a1fa5e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/p_mobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,9 @@ mobj_t *P_SpawnMapThing(mapthing_t *mthing, const bool spawnmonsters)
return NULL;
}

if (mobjinfo[i].flags & MF_COUNTKILL)
if (type == LostSoul && !spawnmonsters)
return NULL;
else if (mobjinfo[i].flags & MF_COUNTKILL)
{
// don't spawn any monsters if -nomonsters
if (!spawnmonsters)
Expand Down

0 comments on commit a1fa5e1

Please sign in to comment.