summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-09 21:10:17 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-09 21:10:17 +0000
commit4b309487832a6dbf45b6dac100399a9968916e4a (patch)
tree1bdb15473c16b9c790534f086f853b66cef8cc4e /src/map/unit.c
parenta2edaef3d051fbb3d3b642cf5b01a3fbfc3cfa18 (diff)
downloadhercules-4b309487832a6dbf45b6dac100399a9968916e4a.tar.gz
hercules-4b309487832a6dbf45b6dac100399a9968916e4a.tar.bz2
hercules-4b309487832a6dbf45b6dac100399a9968916e4a.tar.xz
hercules-4b309487832a6dbf45b6dac100399a9968916e4a.zip
- Fixed skill usage being blocked if you use Weapon Refine and there is nothing available to upgrade.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9839 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 18fffa7f5..7383aed1c 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -312,7 +312,7 @@ int unit_walktoxy( struct block_list *bl, int x, int y, int flag) {
return 1;
}
- if (ud->attacktimer != -1) {
+ if(ud->attacktimer != -1) {
delete_timer( ud->attacktimer, unit_attack_timer );
ud->attacktimer = -1;
}
@@ -373,16 +373,16 @@ int unit_walktobl(struct block_list *bl, struct block_list *tbl, int range, int
return 1;
}
- if (DIFF_TICK(ud->canmove_tick, gettick()) > 0)
+ if(DIFF_TICK(ud->canmove_tick, gettick()) > 0)
{ //Can't move, wait a bit before invoking the movement.
add_timer(ud->canmove_tick+1, unit_walktobl_sub, bl->id, ud->target);
return 1;
}
- if (!unit_can_move(bl))
+ if(!unit_can_move(bl))
return 0;
- if (ud->attacktimer != -1) {
+ if(ud->attacktimer != -1) {
delete_timer( ud->attacktimer, unit_attack_timer );
ud->attacktimer = -1;
}