From 1fc6228436311da0d70f14176fe47f3e37f6faa6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 May 2016 19:06:39 +0300 Subject: Update function hook prototypes for support new hercules. --- src/emap/unit.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/emap/unit.c') 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) -- cgit v1.2.3-70-g09d2