summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-25 06:04:28 -0200
committershennetsind <ind@henn.et>2013-10-25 06:04:28 -0200
commit259fe1930d2307248327bd5737f4909fd77e72ad (patch)
treea8dc47c78eb8cbdb2a883b729856b2d16d361b89 /src
parent70b4e6543cf1448940f80dd1ff44bc9793e53883 (diff)
downloadhercules-259fe1930d2307248327bd5737f4909fd77e72ad.tar.gz
hercules-259fe1930d2307248327bd5737f4909fd77e72ad.tar.bz2
hercules-259fe1930d2307248327bd5737f4909fd77e72ad.tar.xz
hercules-259fe1930d2307248327bd5737f4909fd77e72ad.zip
Follow up e08c05a0f73d6e6ea4fe64a9b91291bc0a002251
Fixed idletime from being updated on walk despite criteria, thanks to kyeme for pointing it out! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 9c740d607..d8ca2872a 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9767,7 +9767,8 @@ void clif_parse_WalkToXY(int fd, struct map_session_data *sd)
RFIFOPOS(fd, packet_db[RFIFOW(fd,0)].pos[0], &x, &y, NULL);
//Set last idle time... [Skotlex]
- sd->idletime = last_tick;
+ if( battle_config.idletime_criteria & BCIDLE_WALK )
+ sd->idletime = last_tick;
unit->walktoxy(&sd->bl, x, y, 4);
}