summaryrefslogtreecommitdiff
path: root/src/tool
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-07 21:15:34 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-07 21:15:34 +0000
commitcb2452c0149e4a4d1f9fa08bf1aafd146f3ca2de (patch)
tree3fa1de03a0c77861780d048a8e96351d0121352e /src/tool
parent2326caf8d02d81d7f4bb96817cbad8e1c639169d (diff)
downloadhercules-cb2452c0149e4a4d1f9fa08bf1aafd146f3ca2de.tar.gz
hercules-cb2452c0149e4a4d1f9fa08bf1aafd146f3ca2de.tar.bz2
hercules-cb2452c0149e4a4d1f9fa08bf1aafd146f3ca2de.tar.xz
hercules-cb2452c0149e4a4d1f9fa08bf1aafd146f3ca2de.zip
- Fixed the platform-specific stricmp compilation problem
- Fixed inverted vending tax equation (venders getting only 2% zeny instead of 98%), and made it more precise git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10182 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/tool')
-rw-r--r--src/tool/mapcache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tool/mapcache.c b/src/tool/mapcache.c
index a1b537a56..d8f37d2b9 100644
--- a/src/tool/mapcache.c
+++ b/src/tool/mapcache.c
@@ -218,9 +218,9 @@ char *remove_extension(char *mapname)
if (ptr) { //Check and remove extension.
while (ptr[1] && (ptr2 = strchr(ptr+1, '.')))
ptr = ptr2; //Skip to the last dot.
- if(strcmp(ptr,".gat") == 0 ||
- strcmp(ptr,".afm") == 0 ||
- strcmp(ptr,".af2") == 0)
+ if(stricmp(ptr,".gat") == 0 ||
+ stricmp(ptr,".afm") == 0 ||
+ stricmp(ptr,".af2") == 0)
*ptr = '\0'; //Remove extension.
}
return mapname;