diff options
author | shennetsind <ind@henn.et> | 2013-11-09 17:42:28 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-11-09 17:42:28 -0200 |
commit | 7bce45cdb4b0248b76da112a45b13e8c22ea344e (patch) | |
tree | 0920ce6e024eedc99f7a9b5f5ad2e944f2d9ea03 /src/map | |
parent | 67fdb6b740ba7f8ee155dff6135e64fd85c21728 (diff) | |
download | hercules-7bce45cdb4b0248b76da112a45b13e8c22ea344e.tar.gz hercules-7bce45cdb4b0248b76da112a45b13e8c22ea344e.tar.bz2 hercules-7bce45cdb4b0248b76da112a45b13e8c22ea344e.tar.xz hercules-7bce45cdb4b0248b76da112a45b13e8c22ea344e.zip |
Fixed Bug 7809
Fixed @speed bug that'd cause partial speed increase (instead of 100%) until map change.
Thanks to Beret, kyeme.
http://hercules.ws/board/tracker/issue-7809-speed-command/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/atcommand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 316e5a39b..cdd257195 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -772,15 +772,15 @@ ACMD(speed) sd->base_status.speed = DEFAULT_WALK_SPEED; else sd->base_status.speed = cap_value(speed, MIN_WALK_SPEED, MAX_WALK_SPEED); - - status_calc_bl(&sd->bl, SCB_SPEED); - + if( sd->base_status.speed != DEFAULT_WALK_SPEED ) { sd->state.permanent_speed = 1; // Set lock when set to non-default speed. clif->message(fd, msg_txt(8)); // Speed changed. } else clif->message(fd, msg_txt(172)); //Speed returned to normal. + status_calc_bl(&sd->bl, SCB_SPEED); + return true; } |