Skip to content

Commit

Permalink
Ignore player starts 5 to 8
Browse files Browse the repository at this point in the history
This fixes issue #805.
  • Loading branch information
bradharding committed Jul 20, 2023
1 parent 4a0fdd5 commit 55e8eef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/p_mobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,10 +1203,10 @@ mobj_t *P_SpawnMapThing(mapthing_t *mthing, const bool spawnmonsters)
P_SpawnFriend(mthing);
return NULL;
}
else if (type == PlayerDeathmatchStart)
else if ((type >= Player5Start && type <= Player8Start) || type == PlayerDeathmatchStart)
return NULL;

if (type == VisualModeCamera)
if (type == Nothing || type == VisualModeCamera)
return NULL;

if (type >= MusicSourceMin && type <= MusicSourceMax)
Expand Down
4 changes: 4 additions & 0 deletions src/r_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,10 @@ enum
Zombieman = 3004,
Cacodemon = 3005,
LostSoul = 3006,
Player5Start = 4001,
Player6Start = 4002,
Player7Start = 4003,
Player8Start = 4004,
Pusher = 5001,
Puller = 5002,
MusicSourceMin = 14100,
Expand Down

0 comments on commit 55e8eef

Please sign in to comment.