summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskyleo <skyleo@skyleo.de>2019-09-10 22:42:12 +0200
committerHaru <haru@dotalux.com>2020-03-08 20:56:28 +0100
commit6295bf32b22f6a6193b5434ff001a9993211c8ed (patch)
tree1d1bb01f2220a65f65b9b36cd1b4ddbd3bd6eecd /src
parentd663f0c9df2c66211718d84ca5f62a8a387445fb (diff)
downloadhercules-6295bf32b22f6a6193b5434ff001a9993211c8ed.tar.gz
hercules-6295bf32b22f6a6193b5434ff001a9993211c8ed.tar.bz2
hercules-6295bf32b22f6a6193b5434ff001a9993211c8ed.tar.xz
hercules-6295bf32b22f6a6193b5434ff001a9993211c8ed.zip
Move bitwise-operations into named variables in unit->delay_walktoxy_timer
Diffstat (limited to 'src')
-rw-r--r--src/map/unit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 790f6b802..d37998e9a 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -499,7 +499,9 @@ 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;
- unit->walktoxy(bl, (short)((data>>16)&0xffff), (short)(data&0xffff), 0);
+ short x = (short) ((data >> 16) & 0xffff);
+ short y = (short) (data & 0xffff);
+ unit->walktoxy(bl, x, y, 0);
return 1;
}