Wiped out the old night code

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9755 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ultramage 2007-01-31 18:59:30 +00:00
parent b022f8f491
commit 287219ad0d
2 changed files with 2 additions and 28 deletions

View File

@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2007/01/31
* Wiped out the old night code (use svn if you want it) [ultramage]
2007/01/30
* 'Long Range Attacked' mob skill conditions will no longer trigger on
magic attacks.

View File

@ -8088,20 +8088,6 @@ void clif_parse_WantToConnection(int fd, TBL_PC* sd)
return;
}
static int clif_nighttimer(int tid, unsigned int tick, int id, int data)
{
TBL_PC *sd;
sd=map_id2sd(id);
if (!sd) return 0;
//Check if character didn't instant-warped after logging in.
if (sd->bl.prev!=NULL) {
sd->state.night = 1;
clif_status_load(&sd->bl, SI_NIGHT, 1);
}
return 0;
}
/*==========================================
* 007d
* map侵入時に必要なデータを全て送りつける
@ -8255,15 +8241,10 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
merc_hom_init_timers(sd->hd);
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);
@ -8283,18 +8264,10 @@ 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);
@ -12338,7 +12311,6 @@ int do_init_clif(void) {
add_timer_func_list(clif_waitclose, "clif_waitclose");
add_timer_func_list(clif_clearchar_delay_sub, "clif_clearchar_delay_sub");
add_timer_func_list(clif_delayquit, "clif_delayquit");
add_timer_func_list(clif_nighttimer, "clif_nighttimer");
add_timer_func_list(clif_walktoxy_timer, "clif_walktoxy_timer");
return 0;
}