summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-11 10:56:39 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-11 10:56:39 +0000
commita2af1f425fb90746191f5ae8ae1ee8624739c441 (patch)
treef6fd4534f507544682a2a3b67915f3be288f57e8 /src/map/map.c
parent0f94f735f50a320d97c0dacb806de2a65662cc3c (diff)
downloadhercules-a2af1f425fb90746191f5ae8ae1ee8624739c441.tar.gz
hercules-a2af1f425fb90746191f5ae8ae1ee8624739c441.tar.bz2
hercules-a2af1f425fb90746191f5ae8ae1ee8624739c441.tar.xz
hercules-a2af1f425fb90746191f5ae8ae1ee8624739c441.zip
Fixed a missing include/export, and typos in the previous revision.
Corrected wrong length values in one charserver packet. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11714 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 19006cf35..526c24394 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -21,6 +21,7 @@
#include "pc.h"
#include "status.h"
#include "mob.h"
+#include "npc.h" // npc_setcells(), npc_unsetcells()
#include "chat.h"
#include "itemdb.h"
#include "storage.h"
@@ -466,7 +467,7 @@ int map_moveblock(struct block_list *bl, int x1, int y1, unsigned int tick)
status_change_end(bl, SC_MAGICROD, -1);
}
} else
- if (bl->type == BL_NPC) npc_unsetcells((BL_NPC*)bl);
+ if (bl->type == BL_NPC) npc_unsetcells((TBL_NPC*)bl);
if (moveblock) map_delblock_sub(bl,0);
#ifdef CELL_NOSTACK
@@ -491,7 +492,7 @@ int map_moveblock(struct block_list *bl, int x1, int y1, unsigned int tick)
}
}
} else
- if (bl->type == BL_NPC) npc_setcells((BL_NPC*)bl);
+ if (bl->type == BL_NPC) npc_setcells((TBL_NPC*)bl);
return 0;
}