From 3fc3bc499c203c6cb17d10709bf1f589a44d0642 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 21 Jul 2006 14:05:27 +0000 Subject: - Added a check to prevent Blind from ending while standing on a fog of wall. - The mob Slave ai will be executed now even when the slave has a target. This will allow for "instant" warping to the master when it changes maps or teleports. if the slave has a target already, it won't unlock it and chase back to the master or anything like that. - Removed a couple of checks that prevents item ids above 20000. However, remember that the max id is still ~32k or the client is the one who's gonna crash! git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7799 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/itemdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/itemdb.c') diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 1849fdbb6..29b676aed 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -429,7 +429,7 @@ static int itemdb_read_itemavail (void) } if (j < 2 || str[0] == NULL || - (nameid = atoi(str[0])) < 0 || nameid >= 20000 || !(id = itemdb_exists(nameid))) + (nameid = atoi(str[0])) < 0 || !(id = itemdb_exists(nameid))) continue; k = atoi(str[1]); @@ -1036,7 +1036,7 @@ static int itemdb_readdb(void) continue; nameid=atoi(str[0]); - if(nameid<=0 || nameid>=20000) + if(nameid<=0) continue; if (j < 19) { //Crash-fix on broken item lines. [Skotlex] -- cgit v1.2.3-60-g2f50