diff options
author | Simon Howard | 2006-01-29 15:05:05 +0000 |
---|---|---|
committer | Simon Howard | 2006-01-29 15:05:05 +0000 |
commit | be2a2fb2dcef2423a4d140a7e4198ba30848a2b1 (patch) | |
tree | cdc1a2934598e9dd5d117e7f2684796b0a0033b5 /src | |
parent | 42d8c02ca47eda7ab9273dcc6ed83a269befbfdd (diff) | |
download | chocolate-doom-be2a2fb2dcef2423a4d140a7e4198ba30848a2b1.tar.gz chocolate-doom-be2a2fb2dcef2423a4d140a7e4198ba30848a2b1.tar.bz2 chocolate-doom-be2a2fb2dcef2423a4d140a7e4198ba30848a2b1.zip |
Allow map things of type <= 0 - these are ignored by Vanilla Doom.
Provides compatibility with plutonia.wad map12.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 354
Diffstat (limited to 'src')
-rw-r--r-- | src/p_mobj.c | 15 |
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) |