diff options
author | Paul Gilbert | 2017-12-17 13:24:09 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-12-17 13:24:09 -0500 |
commit | 5c70b546d3882b745ae4facc4cc107535f41a3bb (patch) | |
tree | 7ff19e75934701a3ba443b9826c239cbffad8007 /engines/xeen/locations.cpp | |
parent | f8bc19159be06e0bdfa4cfda9be0eadd29208906 (diff) | |
download | scummvm-rg350-5c70b546d3882b745ae4facc4cc107535f41a3bb.tar.gz scummvm-rg350-5c70b546d3882b745ae4facc4cc107535f41a3bb.tar.bz2 scummvm-rg350-5c70b546d3882b745ae4facc4cc107535f41a3bb.zip |
XEEN: Cleanup of Dwarf cutscene class & enum values
Diffstat (limited to 'engines/xeen/locations.cpp')
-rw-r--r-- | engines/xeen/locations.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/engines/xeen/locations.cpp b/engines/xeen/locations.cpp index dcb9db6758..6aa8fbf4fc 100644 --- a/engines/xeen/locations.cpp +++ b/engines/xeen/locations.cpp @@ -1809,9 +1809,7 @@ const int16 DWARF2_Y[2][16] = { { 0, 12, 25, 37, 50, 62, 75, 87, 100, 112, 125, 137, 150, 162, 175, 186 } }; -DwarfCutscene::DwarfCutscene(bool isDwarf) : CutsceneLocation(NO_ACTION) { - _townMaxId = Res.TOWN_MAXES[_isDarkCc][isDwarf ? DWARF1 : DWARF2]; -} +DwarfCutscene::DwarfCutscene() : CutsceneLocation(DWARF_MINE) {} int DwarfCutscene::show() { EventsManager &events = *g_vm->_events; @@ -2226,11 +2224,9 @@ int LocationManager::doAction(LocationAction actionId) { case GOLEM: _location = new Locations::GolemCutscene(); break; - case DWARF1: - _location = new Locations::DwarfCutscene(true); - break; - case DWARF2: - _location = new Locations::DwarfCutscene(false); + case DWARF_MINE: + case DWARF_TOWN: + _location = new Locations::DwarfCutscene(); break; case SPHINX: _location = new Locations::SphinxCutscene(); |