state("Game")
{
	int race_finish : 0x52D78, 0xC;
	int in_race : 0xD06CC, 0x01AF6848;
	int in_race_two : 0x68F7C, 0x25C;
	int in_menu : 0x47240, 0x4C;
}

init
{
	print("init");
}

startup
{
	print("startup");
}

start
{
	if (current.in_menu != old.in_menu && current.in_menu == 0 && current.in_race == 0)
	{
		return true;
	}
}

split
{
//	print("1nsane_in_menu " + current.in_menu);
//	print("1nsane_loading " + current.loading);
//	print("1nsane_player_control " + current.player_control);
//	print("1nsane_in_race " + current.in_race);
//	print("1nsane_race_finish " + current.race_finish);
	if (current.race_finish != old.race_finish && current.race_finish == 1 && current.in_race == 1)
	{
		return true;
	}
}

isLoading
{
	if (current.in_menu == 0 && current.in_race_two == 0)
	{
		return true;
	}
	else  
	{
		return false;
	}

}