summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-25 18:22:00 +0000
committerxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-25 18:22:00 +0000
commit11c2d016d40070f1895d88c0eb7bb88079555cfd (patch)
treec0b0a1d761b782087e34cc19d6058beeff587e4e /src/map/unit.c
parent2719529fe331896a79bb31770629bafac059acb3 (diff)
downloadhercules-11c2d016d40070f1895d88c0eb7bb88079555cfd.tar.gz
hercules-11c2d016d40070f1895d88c0eb7bb88079555cfd.tar.bz2
hercules-11c2d016d40070f1895d88c0eb7bb88079555cfd.tar.xz
hercules-11c2d016d40070f1895d88c0eb7bb88079555cfd.zip
* Code consistency updates. No functional changes. Credits to Lighta.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15974 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index b763459ab..e35aca262 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -491,7 +491,7 @@ int unit_wugdash(struct block_list *bl, struct map_session_data *sd) {
nullpo_ret(bl);
if (!unit_can_move(bl)) {
- status_change_end(bl,SC_WUGDASH,-1);
+ status_change_end(bl,SC_WUGDASH,INVALID_TIMER);
return 0;
}
@@ -516,7 +516,7 @@ int unit_wugdash(struct block_list *bl, struct map_session_data *sd) {
if(to_x == bl->x && to_y == bl->y) {
unit_bl2ud(bl)->state.running = 0;
- status_change_end(bl,SC_WUGDASH,-1);
+ status_change_end(bl,SC_WUGDASH,INVALID_TIMER);
if( sd ){
clif_fixpos(bl);
@@ -533,7 +533,7 @@ int unit_wugdash(struct block_list *bl, struct map_session_data *sd) {
if (i==0) {
unit_bl2ud(bl)->state.running = 0;
- status_change_end(bl,SC_WUGDASH,-1);
+ status_change_end(bl,SC_WUGDASH,INVALID_TIMER);
if( sd ){
clif_fixpos(bl);
@@ -1294,11 +1294,11 @@ int unit_skilluse_id2(struct block_list *src, int target_id, short skill_num, sh
status_change_end(src,SC_CLOAKINGEXCEED, INVALID_TIMER);
if (!src->prev) return 0;
} else if( sc->data[SC_CAMOUFLAGE] && skill_num != RA_CAMOUFLAGE )
- status_change_end(src,SC_CAMOUFLAGE,-1);
+ status_change_end(src,SC_CAMOUFLAGE,INVALID_TIMER);
if( sc->data[SC_CURSEDCIRCLE_ATKER] ) {
sc->data[SC_CURSEDCIRCLE_ATKER]->val3 = 1;
- status_change_end(src,SC_CURSEDCIRCLE_ATKER,-1);
+ status_change_end(src,SC_CURSEDCIRCLE_ATKER,INVALID_TIMER);
}
}
@@ -1422,11 +1422,11 @@ int unit_skilluse_pos2( struct block_list *src, short skill_x, short skill_y, sh
status_change_end(src, SC_CLOAKINGEXCEED, INVALID_TIMER);
if (!src->prev) return 0;
} else if( sc->data[SC_CAMOUFLAGE] && skill_num != RA_CAMOUFLAGE )
- status_change_end(src,SC_CAMOUFLAGE,-1);
+ status_change_end(src,SC_CAMOUFLAGE,INVALID_TIMER);
if( sc->data[SC_CURSEDCIRCLE_ATKER] ) {
sc->data[SC_CURSEDCIRCLE_ATKER]->val3 = 1;
- status_change_end(src,SC_CURSEDCIRCLE_ATKER,-1);
+ status_change_end(src,SC_CURSEDCIRCLE_ATKER,INVALID_TIMER);
}
}