summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-05 12:39:28 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-05 12:39:28 +0000
commit17724e67996877069caf4533b835c41c696d5cdc (patch)
tree0f300e115230c611d63ab1672f243735662ad7e0 /src/map/clif.c
parent26514497d6b4114bdb819966411ebe43bb3a2075 (diff)
downloadhercules-17724e67996877069caf4533b835c41c696d5cdc.tar.gz
hercules-17724e67996877069caf4533b835c41c696d5cdc.tar.bz2
hercules-17724e67996877069caf4533b835c41c696d5cdc.tar.xz
hercules-17724e67996877069caf4533b835c41c696d5cdc.zip
- Now when walkdelay is set to 0, characters will stop walking when hit, but will not have any walk delay.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6486 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 075f0fbfc..5f17946a9 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -3837,10 +3837,7 @@ static int clif_calc_walkdelay(struct block_list *bl,int delay, int type, int da
if (div_ > 1) //Multi-hit skills mean higher delays.
delay += battle_config.multihit_delay*(div_-1);
- if (delay <= 0)
- return 0;
-
- return delay>0?delay:0;
+ return delay>0?delay:1; //Return 1 to specify there should be no noticeable delay, but you should stop walking.
}
/*==========================================