summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-26 09:59:30 -0300
committershennetsind <ind@henn.et>2013-07-26 09:59:30 -0300
commitb23563de5f9abde73600f84aff1d24d9f3b53bc5 (patch)
tree21ed35a07c74c224957b888b12e387cdd3751561 /src/map/pet.c
parent583272234fc96da7911029cd3cad13a7fb386e9e (diff)
parente9e8914ebfa70c1c212d0a7d7173b6da9e0e5b60 (diff)
downloadhercules-b23563de5f9abde73600f84aff1d24d9f3b53bc5.tar.gz
hercules-b23563de5f9abde73600f84aff1d24d9f3b53bc5.tar.bz2
hercules-b23563de5f9abde73600f84aff1d24d9f3b53bc5.tar.xz
hercules-b23563de5f9abde73600f84aff1d24d9f3b53bc5.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 62a884316..c83027f2a 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -817,7 +817,7 @@ static int pet_randomwalk(struct pet_data *pd,unsigned int tick)
}
for(i=c=0;i<pd->ud.walkpath.path_len;i++){
if(pd->ud.walkpath.path[i]&1)
- c+=pd->status.speed*14/10;
+ c+=pd->status.speed*MOVE_DIAGONAL_COST/MOVE_COST;
else
c+=pd->status.speed;
}