summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskyleo <skyleo@skyleo.de>2019-09-10 22:44:37 +0200
committerHaru <haru@dotalux.com>2020-03-08 20:56:28 +0100
commit3d34c37c8affc7ca5711245dadaaf3f3cecbba41 (patch)
tree74b849af9f08e0039999ebfccb0bdc924d7dfd8a /src/map
parent6295bf32b22f6a6193b5434ff001a9993211c8ed (diff)
downloadhercules-3d34c37c8affc7ca5711245dadaaf3f3cecbba41.tar.gz
hercules-3d34c37c8affc7ca5711245dadaaf3f3cecbba41.tar.bz2
hercules-3d34c37c8affc7ca5711245dadaaf3f3cecbba41.tar.xz
hercules-3d34c37c8affc7ca5711245dadaaf3f3cecbba41.zip
Change returning error-code in unit->delay_walktoxy_timer to obey code-style guidelines
Diffstat (limited to 'src/map')
-rw-r--r--src/map/unit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index d37998e9a..75bed7eca 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -498,11 +498,11 @@ static int unit_delay_walktoxy_timer(int tid, int64 tick, int id, intptr_t data)
{
struct block_list *bl = map->id2bl(id);
if (bl == NULL || bl->prev == NULL)
- return 0;
+ return 1;
short x = (short) ((data >> 16) & 0xffff);
short y = (short) (data & 0xffff);
unit->walktoxy(bl, x, y, 0);
- return 1;
+ return 0;
}
//flag parameter: