diff options
author | Simon Howard | 2010-02-08 19:12:23 +0000 |
---|---|---|
committer | Simon Howard | 2010-02-08 19:12:23 +0000 |
commit | 26bafb10f03213a97a0628359265ec865f73fba5 (patch) | |
tree | d9e26ed079344c21f3cc174811f9bc19fab09db2 /src/heretic/deh_weapon.c | |
parent | ea89b7c464576a18a8173d7da97d09eff2477edb (diff) | |
download | chocolate-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_weapon.c')
-rw-r--r-- | src/heretic/deh_weapon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/heretic/deh_weapon.c b/src/heretic/deh_weapon.c index 1daae766..28a90c68 100644 --- a/src/heretic/deh_weapon.c +++ b/src/heretic/deh_weapon.c @@ -29,6 +29,7 @@ #include <string.h> #include "doomtype.h" +#include "m_misc.h" #include "doomdef.h" @@ -99,7 +100,7 @@ static void DEH_WeaponParseLine(deh_context_t *context, char *line, void *tag) // If this is a frame field, we need to map from Heretic 1.0 frame // numbers to Heretic 1.3 frame numbers. - if (strstr(variable_name, "frame") != NULL) + if (M_StrCaseStr(variable_name, "frame") != NULL) { ivalue = DEH_MapHereticFrameNumber(ivalue); } |