/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see autosaveExists()) { _G(game).setRoom(903); adv_kill_digi_between_rooms(false); } else { kernel_trigger_dispatch_now(START_44); } break; case START_44: pal_fade_set_start(_G(master_palette), 0); series_stream_with_breaks(break_961d, "961d", 6, 1, START_45); pal_fade_init(_G(master_palette), _G(kernel).first_fade, 255, 100, 30, -1); break; case START_45: kernel_timing_trigger(TENTH_SECOND, START_46, nullptr); break; case START_46: digi_preload_stream_breaks(break_961c); digi_preload_stream_breaks(break_961d); compact_mem_and_report(); release_trigger_on_digi_state(LAST_SCENE_TRIGGER, 1, 0); break; case START_47: pal_cycle_init(224, 254, 4, -1, -1); break; case START_48: pal_cycle_stop(); break; case START_50: if (_G(executing) == WHOLE_GAME) digi_play("952music", 3, 255, -1, -1); break; case START_51: if (_G(executing) == WHOLE_GAME) digi_play_loop("952music", 3, 255, -1, -1); break; case START_52: pal_fade_init(_G(master_palette), 0, 255, 0, 30, -1); break; case START_53: pal_fade_init(_G(master_palette), 0, 255, 100, 30, -1); break; case START_54: pal_fade_init(_G(master_palette), 0, 255, 0, 60, -1); break; case START_55: pal_fade_init(_G(master_palette), 0, 255, 100, 60, -1); break; case LAST_SCENE_TRIGGER: compact_mem_and_report(); if (_G(executing) == WHOLE_GAME) { g_vars->initialize_game(); _G(game).setRoom(801); } else if (g_engine->getLanguage() == Common::EN_ANY) { _G(game).setRoom(901); } else { _G(kernel).force_restart = true; } break; default: _G(kernel).continue_handling_trigger = true; break; } } } // namespace Rooms } // namespace Burger } // namespace M4