summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-16 02:17:48 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-16 02:17:48 +0000
commit81289b916f65036bcab0c292d433ee2a2e9aa8c6 (patch)
tree265861cf3f9a819fb2c635a6bc4d9feb24116aff /src/map/mob.c
parentbde640d49c4a26203d76ea5884c1264b3f7828e2 (diff)
downloadhercules-81289b916f65036bcab0c292d433ee2a2e9aa8c6.tar.gz
hercules-81289b916f65036bcab0c292d433ee2a2e9aa8c6.tar.bz2
hercules-81289b916f65036bcab0c292d433ee2a2e9aa8c6.tar.xz
hercules-81289b916f65036bcab0c292d433ee2a2e9aa8c6.zip
- Fixed mob random walk interval being set to up to 6K seconds in some instances.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5621 54d463be-8e91-2dee-dedb-b68131a5f0ec
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 822eb61d9..b469ab12e 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1929,7 +1929,7 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap)
{
if (DIFF_TICK(md->next_walktime, tick) > 7000 &&
(md->walkpath.path_len == 0 || md->walkpath.path_pos >= md->walkpath.path_len))
- md->next_walktime = tick + 3000 * rand() % 2000;
+ md->next_walktime = tick + 3000 + rand() % 2000;
// Random movement
if (mob_randomwalk(md,tick))
return 0;