diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-23 15:08:47 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-23 15:08:47 +0000 |
commit | 0d0f3c0c2935e3bd2f093b1195ddb97e99b96190 (patch) | |
tree | 5d694440ff9c4a9154812958fa8b7f11e7b77543 /src | |
parent | 67e3647db031dabdb4b300e24ce3d23af4b4889b (diff) | |
download | hercules-0d0f3c0c2935e3bd2f093b1195ddb97e99b96190.tar.gz hercules-0d0f3c0c2935e3bd2f093b1195ddb97e99b96190.tar.bz2 hercules-0d0f3c0c2935e3bd2f093b1195ddb97e99b96190.tar.xz hercules-0d0f3c0c2935e3bd2f093b1195ddb97e99b96190.zip |
- Changed the night status from 149 to 160, which seems to work so much better, and also enabled simplifying the night code. The previous code was there left commented in case it's needed again.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9699 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 17 | ||||
-rw-r--r-- | src/map/status.h | 3 |
2 files changed, 16 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 6fe7694b0..93f7d260c 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -8328,10 +8328,16 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) if(merc_is_hom_active(sd->hd)) merc_hom_init_timers(sd->hd); - //Delayed night effect on log-on fix for the glow-issue. Thanks to Larry. if (night_flag && map[sd->bl.m].flag.nightenabled) +#if 0 + //Delayed night effect on log-on fix for the glow-issue. Thanks to Larry. add_timer(gettick()+1000,clif_nighttimer,sd->bl.id,0); - +#else + { + sd->state.night = 1; + clif_status_load(&sd->bl, SI_NIGHT, 1); + } +#endif // Notify everyone that this char logged in [Skotlex]. clif_foreachclient(clif_friendslist_toggle_sub, sd->status.account_id, sd->status.char_id, 1); @@ -8351,11 +8357,18 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) //New 'night' effect by dynamix [Skotlex] if (night_flag && map[sd->bl.m].flag.nightenabled) { //Display night. +#if 0 if (sd->state.night) //It must be resent because otherwise players get this annoying aura... clif_status_load(&sd->bl, SI_NIGHT, 0); else sd->state.night = 1; clif_status_load(&sd->bl, SI_NIGHT, 1); +#else + if (!sd->state.night) { + sd->state.night = 1; + clif_status_load(&sd->bl, SI_NIGHT, 1); + } +#endif } else if (sd->state.night) { //Clear night display. sd->state.night = 0; clif_status_load(&sd->bl, SI_NIGHT, 0); diff --git a/src/map/status.h b/src/map/status.h index 954e10b7a..ce8fbd827 100644 --- a/src/map/status.h +++ b/src/map/status.h @@ -366,7 +366,6 @@ enum { SI_SHADOWWEAPON = 146, SI_ADRENALINE2 = 147, SI_GHOSTWEAPON = 148, - SI_NIGHT = 149, SI_SPIRIT = 149, SI_DEVIL = 152, SI_KAITE = 153, @@ -374,7 +373,7 @@ enum { SI_KAAHI = 157, SI_KAUPE = 158, SI_SMA = 159, -// 160 + SI_NIGHT = 160, SI_ONEHAND = 161, SI_WARM = 165, // 166 | The three show the exact same display: ultra red character (165, 166, 167) |