|
@@ -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);
|