diff options
author | Simon Howard | 2007-09-15 13:13:00 +0000 |
---|---|---|
committer | Simon Howard | 2007-09-15 13:13:00 +0000 |
commit | 7994c9e7e6d8a6f68c8841c65db3f981d1c3ccf2 (patch) | |
tree | 9d256998d224463ed1847c01a9ee37998fc0f249 /src/p_mobj.c | |
parent | 4f9561ecd383028d75f8027e9cb831a5b553b002 (diff) | |
download | chocolate-doom-7994c9e7e6d8a6f68c8841c65db3f981d1c3ccf2.tar.gz chocolate-doom-7994c9e7e6d8a6f68c8841c65db3f981d1c3ccf2.tar.bz2 chocolate-doom-7994c9e7e6d8a6f68c8841c65db3f981d1c3ccf2.zip |
Check for playeringame overflow when spawning a new player (for
compatibility with vex6d.wad / bug_wald.lmp)
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 973
Diffstat (limited to 'src/p_mobj.c')
-rw-r--r-- | src/p_mobj.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/p_mobj.c b/src/p_mobj.c index bb72166d..15025139 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -683,6 +683,11 @@ void P_SpawnPlayer (mapthing_t* mthing) int i; + if (mthing->type == 0) + { + return; + } + // not playing? if (!playeringame[mthing->type-1]) return; |