diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-08 17:56:31 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-08 17:56:31 +0000 |
commit | 2de9fa2b9bcc944a5671a1965813a56b1e1dfd5c (patch) | |
tree | 14a7873c785ec04068a85dc4148e349d32d2e6a3 /src/map/npc.h | |
parent | 74c9a56b7aa52fff54fa4a34a2f31910307b37eb (diff) | |
download | hercules-2de9fa2b9bcc944a5671a1965813a56b1e1dfd5c.tar.gz hercules-2de9fa2b9bcc944a5671a1965813a56b1e1dfd5c.tar.bz2 hercules-2de9fa2b9bcc944a5671a1965813a56b1e1dfd5c.tar.xz hercules-2de9fa2b9bcc944a5671a1965813a56b1e1dfd5c.zip |
- Fixed @movenpc
- Cleaned up and improved the lootsearch routine to pick nearest item.
- Added INVISIBLE_CLASS to the list of classes supported by npc_get_viewdata
- Fixed trying to set the view_data for npcs who are located on a map, but have no visual data.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5959 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.h')
-rw-r--r-- | src/map/npc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.h b/src/map/npc.h index 286fd6050..e05687969 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -13,7 +13,7 @@ #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))
+#define npcdb_checkid(id) ((id >= 46 && id <= 125) || id == 139 || (id >= 700 && id <= MAX_NPC_CLASS) || id == INVISIBLE_CLASS)
#ifdef PCRE_SUPPORT
void npc_chat_finalize(struct npc_data *nd);
|