summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-16 19:59:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-16 19:59:22 +0000
commit6209367816352a8307fc4f84cce54ea781589a8e (patch)
tree22b34008948d458ee04f9626dbc29aa5333c5f5b /src/map/atcommand.c
parente4206211f72bdd727fccbe2b67d7f5a6b42c7e65 (diff)
downloadhercules-6209367816352a8307fc4f84cce54ea781589a8e.tar.gz
hercules-6209367816352a8307fc4f84cce54ea781589a8e.tar.bz2
hercules-6209367816352a8307fc4f84cce54ea781589a8e.tar.xz
hercules-6209367816352a8307fc4f84cce54ea781589a8e.zip
- 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)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7214 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
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);