From c4227b9c59b6495e7853c0736f1fa4a2a40b9ba4 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 6 Jan 2008 22:08:23 +0000 Subject: Extended the id range for npcs, now [400,700) will also be treated as NPC objects (see topic:170845 and bugreport:727). Silenced a compilation warning. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12025 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/npc.h') diff --git a/src/map/npc.h b/src/map/npc.h index a0c1956b7..f74575368 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -19,7 +19,7 @@ struct view_data; #define MAX_NPC_CLASS 1000 //Checks if a given id is a valid npc id. [Skotlex] //Since new npcs are added all the time, the max valid value is the one before the first mob (Scorpion = 1001) -#define npcdb_checkid(id) ((id >= 46 && id <= 125) || id == 139 || (id >= 700 && id <= MAX_NPC_CLASS) || id == INVISIBLE_CLASS) +#define npcdb_checkid(id) ((id >= 46 && id <= 125) || id == 139 || (id >= 400 && id <= MAX_NPC_CLASS) || id == INVISIBLE_CLASS) #ifdef PCRE_SUPPORT void npc_chat_finalize(struct npc_data* nd); -- cgit v1.2.3-60-g2f50