From 7bce45cdb4b0248b76da112a45b13e8c22ea344e Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 9 Nov 2013 17:42:28 -0200 Subject: 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 --- src/map/atcommand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map') 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; } -- cgit v1.2.3-70-g09d2