diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-24 21:29:01 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-24 21:29:01 +0000 |
commit | 519949ae8108400c33ff3981227155830070f2a0 (patch) | |
tree | 23060bd60cc73e2f30488fd7df03fb35bdc4d45f /src/map/pc.c | |
parent | e6f3fda8b58a50c9372a948193ef1977bb8c5b45 (diff) | |
download | hercules-519949ae8108400c33ff3981227155830070f2a0.tar.gz hercules-519949ae8108400c33ff3981227155830070f2a0.tar.bz2 hercules-519949ae8108400c33ff3981227155830070f2a0.tar.xz hercules-519949ae8108400c33ff3981227155830070f2a0.zip |
- Made the pc_deleteinvincibletimer function a define so it auto-checks for the timer value.
- Fixed a missing tab in the skill require info of TWILIGHT3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9709 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index e20257085..f1dd19df4 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -131,15 +131,10 @@ int pc_setinvincibletimer(struct map_session_data *sd,int val) { return 0; } -int pc_delinvincibletimer(struct map_session_data *sd) { - nullpo_retr(0, sd); - - if(sd->invincible_timer != INVALID_TIMER) { - delete_timer(sd->invincible_timer,pc_invincible_timer); - sd->invincible_timer = INVALID_TIMER; - skill_unit_move(&sd->bl,gettick(),1); - } - return 0; +void pc_delinvincibletimer_sub(struct map_session_data *sd) { + delete_timer(sd->invincible_timer,pc_invincible_timer); + sd->invincible_timer = INVALID_TIMER; + skill_unit_move(&sd->bl,gettick(),1); } static int pc_spiritball_timer(int tid,unsigned int tick,int id,int data) { @@ -606,6 +601,8 @@ int pc_authok(struct map_session_data *sd, int login_id2, time_t connect_until_t sd->followtimer = -1; // [MouseJstr] sd->invincible_timer = -1; + sd->npc_timer_id = -1; + sd->pvp_timer = -1; sd->canuseitem_tick = tick; sd->cantalk_tick = tick; @@ -650,11 +647,6 @@ int pc_authok(struct map_session_data *sd, int login_id2, time_t connect_until_t for(i = 0; i < MAX_EVENTTIMER; i++) sd->eventtimer[i] = -1; - sd->npc_timer_id = -1; - - // Moved PVP timer initialisation before set_pos - sd->pvp_timer = -1; - for (i = 0; i < 3; i++) sd->hate_mob[i] = -1; |