summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2008-01-10 00:46:53 +0000
committerSimon Howard2008-01-10 00:46:53 +0000
commitbdcc178d496d95e87afab7399b1b30438595c28c (patch)
treeb17931894098d2d0187179f37c128d3df4ae412a
parentf5040263b6a50961e12e64aa2e19fde049dd48c2 (diff)
downloadchocolate-doom-bdcc178d496d95e87afab7399b1b30438595c28c.tar.gz
chocolate-doom-bdcc178d496d95e87afab7399b1b30438595c28c.tar.bz2
chocolate-doom-bdcc178d496d95e87afab7399b1b30438595c28c.zip
Use the same spechits magic value that PrBoom-plus uses (thanks
Lemonzest). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 997
-rw-r--r--src/p_map.c30
1 files changed, 21 insertions, 9 deletions
diff --git a/src/p_map.c b/src/p_map.c
index 9f52aa13..053f267c 100644
--- a/src/p_map.c
+++ b/src/p_map.c
@@ -46,6 +46,26 @@
// Data.
#include "sounds.h"
+// Spechit overrun magic value.
+//
+// This is the value used by PrBoom-plus. I think the value below is
+// actually better and works with more demos. However, I think
+// it's better for the spechits emulation to be compatible with
+// PrBoom-plus, at least so that the big spechits emulation list
+// on Doomworld can also be used with Chocolate Doom.
+
+#define DEFAULT_SPECHIT_MAGIC 0x01C09C98
+
+// This is from a post by myk on the Doomworld forums,
+// outputted from entryway's spechit_magic generator for
+// s205n546.lmp. The _exact_ value of this isn't too
+// important; as long as it is in the right general
+// range, it will usually work. Otherwise, we can use
+// the generator (hacked doom2.exe) and provide it
+// with -spechit.
+
+//#define DEFAULT_SPECHIT_MAGIC 0x84f968e8
+
fixed_t tmbbox[4];
mobj_t* tmthing;
@@ -1394,15 +1414,7 @@ static void SpechitOverrun(line_t *ld)
}
else
{
- // This is from a post by myk on the Doomworld forums,
- // outputted from entryway's spechit_magic generator for
- // s205n546.lmp. The _exact_ value of this isn't too
- // important; as long as it is in the right general
- // range, it will usually work. Otherwise, we can use
- // the generator (hacked doom2.exe) and provide it
- // with -spechit.
-
- baseaddr = 0x84f968e8;
+ baseaddr = DEFAULT_SPECHIT_MAGIC;
}
}