summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt3
-rw-r--r--src/map/atcommand.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 264615fd7..f9566f4ae 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/06/16
+ * Corrected @speed to alter your base speed instead of battle one. Means
+ the change remains for much longer (until status_calc_pc is invoked, which
+ could be due to equipping/unequipping stuff) [Skotlex]
* Modified the bNoMagicDamage/bNoWeaponDamage bonuses to be a 0-100
setting. Meaning you can do bonus bNoMagicDamage,50; To make all magic
damage be reduced by half. This bonus stack, so two cards with
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 073382f71..189b54f71 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2113,8 +2113,8 @@ int atcommand_speed(
speed = atoi(message);
if (speed >= MIN_WALK_SPEED && speed <= MAX_WALK_SPEED) {
- sd->battle_status.speed = speed;
- clif_updatestatus(sd, SP_SPEED);
+ sd->base_status.speed = speed;
+ status_calc_bl(&sd->bl, SCB_SPEED);
clif_displaymessage(fd, msg_table[8]); // Speed changed.
} else {
sprintf(atcmd_output, "Please, enter a valid speed value (usage: @speed <%d-%d>).", MIN_WALK_SPEED, MAX_WALK_SPEED);