summaryrefslogtreecommitdiff
path: root/src/emap/unit.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-02 19:06:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-02 19:06:39 +0300
commit1fc6228436311da0d70f14176fe47f3e37f6faa6 (patch)
tree9434c90ab44ac55200daa199f524fa11f3168678 /src/emap/unit.c
parent00d1b8bf9fc3648730904b6f86696417f4445037 (diff)
downloadevol-hercules-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.gz
evol-hercules-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.bz2
evol-hercules-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.xz
evol-hercules-1fc6228436311da0d70f14176fe47f3e37f6faa6.zip
Update function hook prototypes for support new hercules.
Diffstat (limited to 'src/emap/unit.c')
-rw-r--r--src/emap/unit.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/emap/unit.c b/src/emap/unit.c
index b53e691..c0db6b2 100644
--- a/src/emap/unit.c
+++ b/src/emap/unit.c
@@ -24,11 +24,12 @@
#include "emap/unit.h"
-int eunit_can_move(struct block_list *bl)
+int eunit_can_move_pre(struct block_list **blPtr)
{
TBL_PC *sd;
struct unit_data *ud;
struct status_change *sc;
+ struct block_list *bl = *blPtr;
if (!bl)
{
@@ -149,11 +150,12 @@ int eunit_can_move(struct block_list *bl)
return 1;
}
-int eunit_walktoxy(struct block_list *bl __attribute__ ((unused)),
- short *x __attribute__ ((unused)),
- short *y __attribute__ ((unused)),
- int *flagPtr)
+int eunit_walktoxy_pre(struct block_list **blPtr __attribute__ ((unused)),
+ short *x __attribute__ ((unused)),
+ short *y __attribute__ ((unused)),
+ int *flagPtr)
{
+ struct block_list *bl = *blPtr;
// reset flag "Search for an unoccupied cell and cancel if none available"
// this reduce CPU usage and allow mobs to walk on each other.
if ((*flagPtr)&8)