summaryrefslogtreecommitdiff
path: root/src/heretic/deh_thing.c
diff options
context:
space:
mode:
authorSimon Howard2010-02-08 19:12:23 +0000
committerSimon Howard2010-02-08 19:12:23 +0000
commit26bafb10f03213a97a0628359265ec865f73fba5 (patch)
treed9e26ed079344c21f3cc174811f9bc19fab09db2 /src/heretic/deh_thing.c
parentea89b7c464576a18a8173d7da97d09eff2477edb (diff)
downloadchocolate-doom-26bafb10f03213a97a0628359265ec865f73fba5.tar.gz
chocolate-doom-26bafb10f03213a97a0628359265ec865f73fba5.tar.bz2
chocolate-doom-26bafb10f03213a97a0628359265ec865f73fba5.zip
Add case-insensitive version of strstr(), and use this instead of
strstr() in dehacked code to determine when to map frame numbers. Subversion-branch: /branches/raven-branch Subversion-revision: 1861
Diffstat (limited to 'src/heretic/deh_thing.c')
-rw-r--r--src/heretic/deh_thing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/heretic/deh_thing.c b/src/heretic/deh_thing.c
index fe94f3b8..ffededf2 100644
--- a/src/heretic/deh_thing.c
+++ b/src/heretic/deh_thing.c
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include "doomtype.h"
+#include "m_misc.h"
#include "deh_defs.h"
#include "deh_main.h"
@@ -117,7 +118,7 @@ static void DEH_ThingParseLine(deh_context_t *context, char *line, void *tag)
// undergo transformation from a Heretic 1.0 index to a
// Heretic 1.3 index.
- if (strstr(variable_name, "frame") != NULL)
+ if (M_StrCaseStr(variable_name, "frame") != NULL)
{
ivalue = DEH_MapHereticFrameNumber(ivalue);
}