summaryrefslogtreecommitdiff
path: root/src/p_mobj.c
diff options
context:
space:
mode:
authorSimon Howard2005-10-24 18:50:39 +0000
committerSimon Howard2005-10-24 18:50:39 +0000
commit9f358870161c4866526cd85b04ffa1d2f3188899 (patch)
treee14196dba8b4a11168c19f5792dd8edb9ed4ed74 /src/p_mobj.c
parentb9be9f99ef4b050650018a9eee4478077255c9e8 (diff)
downloadchocolate-doom-9f358870161c4866526cd85b04ffa1d2f3188899.tar.gz
chocolate-doom-9f358870161c4866526cd85b04ffa1d2f3188899.tar.bz2
chocolate-doom-9f358870161c4866526cd85b04ffa1d2f3188899.zip
Allow the game version to emulate to be specified from the command line
and set compatibility options accordingly. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 223
Diffstat (limited to 'src/p_mobj.c')
-rw-r--r--src/p_mobj.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/p_mobj.c b/src/p_mobj.c
index c73780f0..5a0d41c9 100644
--- a/src/p_mobj.c
+++ b/src/p_mobj.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: p_mobj.c 191 2005-10-13 22:23:55Z fraggle $
+// $Id: p_mobj.c 223 2005-10-24 18:50:39Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,10 @@
// 02111-1307, USA.
//
// $Log$
+// 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.
+//
// Revision 1.4 2005/10/13 22:23:55 fraggle
// Fix logic for lost soul bounce
//
@@ -41,7 +45,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: p_mobj.c 191 2005-10-13 22:23:55Z fraggle $";
+rcsid[] = "$Id: p_mobj.c 223 2005-10-24 18:50:39Z fraggle $";
#include "i_system.h"
#include "z_zone.h"
@@ -327,9 +331,7 @@ void P_ZMovement (mobj_t* mo)
// So we need to check that this is either retail or commercial
// (but not doom2)
- int correct_lost_soul_bounce
- = (gamemode == retail || gamemode == commercial)
- && gamemission != doom2;
+ int correct_lost_soul_bounce = gameversion >= exe_ultimate;
if (correct_lost_soul_bounce && mo->flags & MF_SKULLFLY)
{