static unsigned char bgnight[] = {61, 103, 110},
static unsigned char bgnight[] = {61, 255, 255},
void Background_noise::handle_event	(	unsigned long curtime,	long udata	)	{	Main_actor *ava = gwin->get_main_actor();	unsigned long delay = 8000;#ifndef COLOURLESS_REALLY_HATES_THE_BG_SFX					// Only if outside.	if (ava && !gwin->is_main_actor_inside() &&					// +++++SI SFX's don't sound right.	    Game::get_game_type() == BLACK_GATE)		{		int sound;		// BG SFX #.		static unsigned char bgnight[] = {61, 103, 110},				     bgday[] = {82, 85, 85};		if (repeats > 0)	// Repeating?			sound = last_sound;		else			{			int hour = gwin->get_hour();			if (hour < 6 || hour > 20)				sound = bgnight[rand()%sizeof(bgnight)];			else				sound = bgday[rand()%sizeof(bgday)];					// Translate BG to SI #'s.			sound = Audio::game_sfx(sound);			last_sound = sound;			}		Audio::get_ptr()->play_sound_effect(sound);		repeats++;		// Count it.		if (rand()%(repeats + 1) == 0)					// Repeat.			delay = 500 + rand()%1000;		else			{			delay = 4000 + rand()%3000;			repeats = 0;			}		}#endif	gwin->get_tqueue()->add(curtime + delay, this, udata);	}