summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-18 15:45:48 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-18 15:45:48 +0000
commitfc936e5ced9af544cde112c1abc7374526088890 (patch)
tree31fcd590c5be902417a8a23ac95ff4d92700f2d5 /src/map/mob.c
parent4add6a5ba3b45cf97a3731a8a38577e7506bca30 (diff)
downloadhercules-fc936e5ced9af544cde112c1abc7374526088890.tar.gz
hercules-fc936e5ced9af544cde112c1abc7374526088890.tar.bz2
hercules-fc936e5ced9af544cde112c1abc7374526088890.tar.xz
hercules-fc936e5ced9af544cde112c1abc7374526088890.zip
- Cleaned up a bit the format of skill_db.txt (that comma next to the skill name looks ugly if you ask me)
- Corrected skill_db reading to properly trim the skill name/descs. - Added a mobid_db in map.c to handle mob lookups faster. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11943 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index c58ce5e17..efe19b507 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1383,7 +1383,7 @@ static int mob_ai_sub_lazy(DBKey key,void * data,va_list ap)
nullpo_retr(0, md);
- if(md->bl.type!=BL_MOB || md->bl.prev == NULL)
+ if(md->bl.prev == NULL)
return 0;
if (md->nd || (battle_config.mob_ai&0x20 && map[md->bl.m].users>0))
@@ -1443,7 +1443,7 @@ static int mob_ai_sub_lazy(DBKey key,void * data,va_list ap)
*------------------------------------------*/
static int mob_ai_lazy(int tid,unsigned int tick,int id,int data)
{
- map_foreachiddb(mob_ai_sub_lazy,tick);
+ map_foreachmob(mob_ai_sub_lazy,tick);
return 0;
}