summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2013-07-23 09:26:01 -0700
committerHaruna <haru@dotalux.com>2013-07-23 09:26:01 -0700
commit356a3ab31d7569eac9b2fa996c8d641eba7c9f99 (patch)
treec553cbaeee540c4836d70d86c0da9ebbda00a5d7 /src/map/mob.c
parent8d14a2e979fa7aab75b38a2c92e617de9c2e5f2e (diff)
parent78028c8b652a4edf761b6f250c2fca4b6c576dee (diff)
downloadhercules-356a3ab31d7569eac9b2fa996c8d641eba7c9f99.tar.gz
hercules-356a3ab31d7569eac9b2fa996c8d641eba7c9f99.tar.bz2
hercules-356a3ab31d7569eac9b2fa996c8d641eba7c9f99.tar.xz
hercules-356a3ab31d7569eac9b2fa996c8d641eba7c9f99.zip
Merge pull request #65 from piotrhalaczkiewicz/pathfinding
Pathfinding code cleanup.
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 601ecd110..9cd05a8a3 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1364,7 +1364,7 @@ int mob_randomwalk(struct mob_data *md,unsigned int tick)
speed=iStatus->get_speed(&md->bl);
for(i=c=0;i<md->ud.walkpath.path_len;i++){ // The next walk start time is calculated.
if(md->ud.walkpath.path[i]&1)
- c+=speed*14/10;
+ c+=speed*MOVE_DIAGONAL_COST/MOVE_COST;
else
c+=speed;
}