summaryrefslogtreecommitdiff
path: root/src/p_mobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/p_mobj.c')
-rw-r--r--src/p_mobj.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/p_mobj.c b/src/p_mobj.c
index 5a0d41c9..d0638642 100644
--- a/src/p_mobj.c
+++ b/src/p_mobj.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: p_mobj.c 223 2005-10-24 18:50:39Z fraggle $
+// $Id: p_mobj.c 354 2006-01-29 15:05:05Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.6 2006/01/29 15:05:05 fraggle
+// Allow map things of type <= 0 - these are ignored by Vanilla Doom. Provides compatibility with plutonia.wad map12.
+//
// Revision 1.5 2005/10/24 18:50:39 fraggle
// Allow the game version to emulate to be specified from the command line
// and set compatibility options accordingly.
@@ -45,7 +48,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: p_mobj.c 223 2005-10-24 18:50:39Z fraggle $";
+rcsid[] = "$Id: p_mobj.c 354 2006-01-29 15:05:05Z fraggle $";
#include "i_system.h"
#include "z_zone.h"
@@ -779,6 +782,14 @@ void P_SpawnMapThing (mapthing_t* mthing)
}
return;
}
+
+ if (mthing->type <= 0)
+ {
+ // Thing type 0 is actually "player -1 start".
+ // For some reason, Vanilla Doom accepts/ignores this.
+
+ return;
+ }
// check for players specially
if (mthing->type <= 4)