summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-25 02:51:01 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-25 02:51:01 +0000
commit87f869a7b32d02b16e89f7abb6f202653fcf70e6 (patch)
treedfe3d9e71be9b8a65dfc6e5466d4ebd7d2ec5472 /src/map/mob.c
parent487ab0cc92f387857df51d0f137a1c2b671d8977 (diff)
downloadhercules-87f869a7b32d02b16e89f7abb6f202653fcf70e6.tar.gz
hercules-87f869a7b32d02b16e89f7abb6f202653fcf70e6.tar.bz2
hercules-87f869a7b32d02b16e89f7abb6f202653fcf70e6.tar.xz
hercules-87f869a7b32d02b16e89f7abb6f202653fcf70e6.zip
- All GMs will be sent to the char server through packet 0x2aff now.
- Made mob_searchname compare versus sprite, name and jname now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6263 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 5e960b4fa..bdd6d6bb4 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -74,8 +74,7 @@ int mobdb_searchname(const char *str)
mob = mob_db(i);
if(mob == mob_dummy) //Skip dummy mobs.
continue;
- if(strcmpi(mob->name,str)==0 || strcmpi(mob->jname,str)==0 ||
- memcmp(mob->name,str,NAME_LENGTH)==0 || memcmp(mob->jname,str,NAME_LENGTH)==0)
+ if(strcmpi(mob->name,str)==0 || strcmpi(mob->jname,str)==0 || strcmpi(mob->sprite,str)==0)
return i;
}