summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-09 19:36:52 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-09 19:36:52 +0000
commit0c0d047fda4125b727b181468d7c898fc36133af (patch)
tree2799804057fab20f30b7c3151c495b50573d0d47 /src/map/status.c
parenta922acb1ec3a1ccb666cd180d3278ff38120796c (diff)
downloadhercules-0c0d047fda4125b727b181468d7c898fc36133af.tar.gz
hercules-0c0d047fda4125b727b181468d7c898fc36133af.tar.bz2
hercules-0c0d047fda4125b727b181468d7c898fc36133af.tar.xz
hercules-0c0d047fda4125b727b181468d7c898fc36133af.zip
Really implemented SC_WALKSPEED (instead of copy-pasting old code) (followup to r13039)
- the modifier is now a percentual value - a higher modifier now means faster speed, not slower git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13059 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 35a61a962..1ff562eff 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3787,7 +3787,7 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha
if( sc->data[SC_DEFENDER] )
speed = max(speed, 200);
if( sc->data[SC_WALKSPEED] ) // ChangeSpeed
- speed = speed * sc->data[SC_WALKSPEED]->val1;
+ speed = speed * 100 / sc->data[SC_WALKSPEED]->val1;
}
return (short)cap_value(speed,10,USHRT_MAX);