aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/user_interface.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2014-05-06 04:39:12 +0300
committerFilippos Karapetis2014-05-06 04:39:12 +0300
commitd88e165e00cc70540af05c06f4f32b1907bdcc09 (patch)
treef0f093346534ae8002fa101c06fa8538668d72e3 /engines/mads/user_interface.cpp
parentc5878e401ce54713fb179f24a5744666571d2743 (diff)
downloadscummvm-rg350-d88e165e00cc70540af05c06f4f32b1907bdcc09.tar.gz
scummvm-rg350-d88e165e00cc70540af05c06f4f32b1907bdcc09.tar.bz2
scummvm-rg350-d88e165e00cc70540af05c06f4f32b1907bdcc09.zip
MADS: Fix loading of V2 hotspots
Diffstat (limited to 'engines/mads/user_interface.cpp')
-rw-r--r--engines/mads/user_interface.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp
index 8208c14f4d..e8eaf3ad44 100644
--- a/engines/mads/user_interface.cpp
+++ b/engines/mads/user_interface.cpp
@@ -704,15 +704,12 @@ void UserInterface::loadElements() {
CAT_INV_ANIM, 0);
}
- // TODO: Implement for V2 games
- if (_vm->getGameID() == GType_RexNebular) {
- if (_vm->_game->_screenObjects._inputMode == kInputBuildingSentences ||
- _vm->_game->_screenObjects._inputMode == kInputLimitedSentences) {
- _categoryIndexes[CAT_HOTSPOT - 1] = _vm->_game->_screenObjects.size() + 1;
- for (int hotspotIdx = scene._hotspots.size() - 1; hotspotIdx >= 0; --hotspotIdx) {
- Hotspot &hs = scene._hotspots[hotspotIdx];
- _vm->_game->_screenObjects.add(hs._bounds, LAYER_GUI, CAT_HOTSPOT, hotspotIdx);
- }
+ if (_vm->_game->_screenObjects._inputMode == kInputBuildingSentences ||
+ _vm->_game->_screenObjects._inputMode == kInputLimitedSentences) {
+ _categoryIndexes[CAT_HOTSPOT - 1] = _vm->_game->_screenObjects.size() + 1;
+ for (int hotspotIdx = scene._hotspots.size() - 1; hotspotIdx >= 0; --hotspotIdx) {
+ Hotspot &hs = scene._hotspots[hotspotIdx];
+ _vm->_game->_screenObjects.add(hs._bounds, LAYER_GUI, CAT_HOTSPOT, hotspotIdx);
}
}