Pages:<< prev 1 next >>
Geomancer

GroupAdministrators
Posts1,990
JoinedJul 26, 2005
timeinfo.c
around line 528 find
change it to
around line 528 find
for( pArea = first_area; pArea; pArea = ( pArea == last_area ) ? first_build : pArea->next )
{
get_time_echo( pArea, pArea->weather );
switch( pArea->current_time.hour )
{
case 5:
case 6:
case 12:
case 19:
case 20:
for( d = first_descriptor; d; d = d->next )
{
if( !d || !d->character || !d->character->in_room || d->connected != CON_PLAYING )
continue;
if( !is_outside( d->character ) || no_weather_sect( d->character->in_room ) )
continue;
weath = d->character->in_room->area->weather;
if( !weath->echo )
continue;
set_char_color( weath->echo_color, d->character );
send_to_char( weath->echo, d->character );
}
break;
case 24:
if( ( hmessage = show_holiday( ) ) )
{
for( d = first_descriptor; d; d = d->next )
{
if( !d || !d->character || !d->character->in_room || d->connected != CON_PLAYING )
continue;
if( !is_outside( d->character ) || no_weather_sect( d->character->in_room ) )
continue;
ch_printf( d->character, "%s\r\n", hmessage );
}
}
break;
}
}
change it to
for( pArea = first_area; pArea; pArea = ( pArea == last_area ) ? first_build : pArea->next )
{
get_time_echo( pArea, pArea->weather );
switch( pArea->current_time.hour )
{
case 5:
case 6:
case 12:
case 19:
case 20:
for( d = first_descriptor; d; d = d->next )
{
if( !d || !d->character || !d->character->in_room || d->connected != CON_PLAYING )
continue;
if( d->character->in_room->area != pArea )
continue;
if( !is_outside( d->character ) || no_weather_sect( d->character->in_room ) )
continue;
weath = d->character->in_room->area->weather;
if( !weath->echo )
continue;
set_char_color( weath->echo_color, d->character );
send_to_char( weath->echo, d->character );
}
break;
case 24:
if( ( hmessage = show_holiday( ) ) )
{
for( d = first_descriptor; d; d = d->next )
{
if( !d || !d->character || !d->character->in_room || d->connected != CON_PLAYING )
continue;
if( d->character->in_room->area != pArea )
continue;
if( !is_outside( d->character ) || no_weather_sect( d->character->in_room ) )
continue;
ch_printf( d->character, "%s\r\n", hmessage );
}
}
break;
}
}
Pages:<< prev 1 next >>