|
1
|
mysong = "na";
|
|
2
|
if (room == room_dw_city_savepoint)
|
|
3
|
{
|
|
4
|
if (global.plot < 100)
|
|
5
|
{
|
|
6
|
if (scr_sideb_get_phasescr_sideb_get_phase
function scr_sideb_get_phase()
{
var phase = 0;
if (global.flag[916 snowgrave_fail] == 0)
{
if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4)
phase = 1;
if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7)
phase = 2;
if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20)
phase = 3;
if (global.flag[915 snowgrave_plot] >= 20)
phase = 4;
}
return phase;
} () > 1)
|
|
7
|
instance_destroy();
|
|
8
|
else
|
|
9
|
mysong = "cyberhouse.ogg";
|
|
10
|
}
|
|
11
|
}
|
|
12
|
if (room == room_dw_city_spamton_house || room == room_dw_city_spamton_shop_exterior || room == room_dw_city_intro || room == room_dw_city_split)
|
|
13
|
mysong = "alley_ambience.ogg";
|
|
14
|
if (mysong != "na" && !snd_is_playing(global.currentsong[1]))
|
|
15
|
{
|
|
16
|
global.currentsong[0] = snd_init(mysong);
|
|
17
|
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 0.8, 0.97);
|
|
18
|
}
|