summaryrefslogtreecommitdiff
path: root/src/p_mobj.c
diff options
context:
space:
mode:
authorSimon Howard2007-09-15 13:13:00 +0000
committerSimon Howard2007-09-15 13:13:00 +0000
commit7994c9e7e6d8a6f68c8841c65db3f981d1c3ccf2 (patch)
tree9d256998d224463ed1847c01a9ee37998fc0f249 /src/p_mobj.c
parent4f9561ecd383028d75f8027e9cb831a5b553b002 (diff)
downloadchocolate-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.c5
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;