summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-11-09 18:51:21 +0100
committerHaru <haru@dotalux.com>2013-12-01 13:20:45 +0100
commit6e9c385b8fa2fbca97ca23e35f0b8e5dabd13526 (patch)
tree36d0e720e9956baf2aa8dff2b2aee2ae96d10421 /src/map/mob.c
parentc6c2ad187c386d8d27d3336dcbdd5a92555493d2 (diff)
downloadhercules-6e9c385b8fa2fbca97ca23e35f0b8e5dabd13526.tar.gz
hercules-6e9c385b8fa2fbca97ca23e35f0b8e5dabd13526.tar.bz2
hercules-6e9c385b8fa2fbca97ca23e35f0b8e5dabd13526.tar.xz
hercules-6e9c385b8fa2fbca97ca23e35f0b8e5dabd13526.zip
Changed item Aegis ID and mob Sprite ID lookups to case sensitive.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 16c33b552..92fa98885 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -95,7 +95,7 @@ int mobdb_searchname(const char *str)
monster = mob->db(i);
if(monster == mob->dummy) //Skip dummy mobs.
continue;
- if(strcmpi(monster->name,str)==0 || strcmpi(monster->jname,str)==0 || strcmpi(monster->sprite,str)==0)
+ if(strcmpi(monster->name,str)==0 || strcmpi(monster->jname,str)==0 || strcmp(monster->sprite,str)==0) // Sprite name case sensitive
return i;
}
@@ -113,9 +113,9 @@ int mobdb_searchname_array_sub(struct mob_db* monster, const char *str, int flag
return 0;
return strcmpi(monster->jname,str);
}
- if(strcmp(monster->jname,str) == 0)
+ if(strcmpi(monster->jname,str) == 0)
return 0;
- if(strcmp(monster->name,str) == 0)
+ if(strcmpi(monster->name,str) == 0)
return 0;
return strcmp(monster->sprite,str);
}