diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/itemdb.c | 4 | ||||
-rw-r--r-- | src/map/mob.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index dc4559483..8a7e34ceb 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -37,7 +37,7 @@ int itemdb_searchname_sub(DBKey key, DBData *data, va_list ap) //Absolute priority to Aegis code name. if (*dst != NULL) return 0; - if( strcmpi(item->name,str)==0 ) + if( strcmp(item->name,str)==0 ) // Case sensitive *dst=item; //Second priority to Client displayed name. @@ -61,7 +61,7 @@ struct item_data* itemdb_searchname(const char *str) { continue; // Absolute priority to Aegis code name. - if( strcasecmp(item->name,str) == 0 ) + if( strcmp(item->name,str) == 0 ) // Case sensitive return item; //Second priority to Client displayed name. 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); } |