diff options
author | xazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-04-25 18:22:00 +0000 |
---|---|---|
committer | xazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-04-25 18:22:00 +0000 |
commit | 11c2d016d40070f1895d88c0eb7bb88079555cfd (patch) | |
tree | c0b0a1d761b782087e34cc19d6058beeff587e4e /src/map/pc.c | |
parent | 2719529fe331896a79bb31770629bafac059acb3 (diff) | |
download | hercules-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/pc.c')
-rw-r--r-- | src/map/pc.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 345ca1c83..a881fdc97 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -7107,20 +7107,20 @@ int pc_setoption(struct map_session_data *sd,int type) if( (sd->class_&MAPID_THIRDMASK) == MAPID_MECHANIC ) { if( type&OPTION_MADOGEAR && !(p_type&OPTION_MADOGEAR) ) { status_calc_pc(sd, 0); - status_change_end(&sd->bl,SC_MAXIMIZEPOWER,-1); - status_change_end(&sd->bl,SC_OVERTHRUST,-1); - status_change_end(&sd->bl,SC_WEAPONPERFECTION,-1); - status_change_end(&sd->bl,SC_ADRENALINE,-1); - status_change_end(&sd->bl,SC_CARTBOOST,-1); - status_change_end(&sd->bl,SC_MELTDOWN,-1); - status_change_end(&sd->bl,SC_MAXOVERTHRUST,-1); + status_change_end(&sd->bl,SC_MAXIMIZEPOWER,INVALID_TIMER); + status_change_end(&sd->bl,SC_OVERTHRUST,INVALID_TIMER); + status_change_end(&sd->bl,SC_WEAPONPERFECTION,INVALID_TIMER); + status_change_end(&sd->bl,SC_ADRENALINE,INVALID_TIMER); + status_change_end(&sd->bl,SC_CARTBOOST,INVALID_TIMER); + status_change_end(&sd->bl,SC_MELTDOWN,INVALID_TIMER); + status_change_end(&sd->bl,SC_MAXOVERTHRUST,INVALID_TIMER); } else if( !(type&OPTION_MADOGEAR) && p_type&OPTION_MADOGEAR ) { status_calc_pc(sd, 0); - status_change_end(&sd->bl,SC_SHAPESHIFT,-1); - status_change_end(&sd->bl,SC_HOVERING,-1); - status_change_end(&sd->bl,SC_ACCELERATION,-1); - status_change_end(&sd->bl,SC_OVERHEAT_LIMITPOINT,-1); - status_change_end(&sd->bl,SC_OVERHEAT,-1); + status_change_end(&sd->bl,SC_SHAPESHIFT,INVALID_TIMER); + status_change_end(&sd->bl,SC_HOVERING,INVALID_TIMER); + status_change_end(&sd->bl,SC_ACCELERATION,INVALID_TIMER); + status_change_end(&sd->bl,SC_OVERHEAT_LIMITPOINT,INVALID_TIMER); + status_change_end(&sd->bl,SC_OVERHEAT,INVALID_TIMER); } } |