aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorFilippos Karapetis2014-04-27 21:19:36 +0300
committerFilippos Karapetis2014-04-27 21:20:03 +0300
commit027a2f3710b05fcefc5135ad9a2b562f7c1ab50c (patch)
tree6a32c656777ece46b8b7dab2fe60daa0848ef1ff /engines/mads
parent87ad5a8397cc332c6e3580725df39925eb5b66c5 (diff)
downloadscummvm-rg350-027a2f3710b05fcefc5135ad9a2b562f7c1ab50c.tar.gz
scummvm-rg350-027a2f3710b05fcefc5135ad9a2b562f7c1ab50c.tar.bz2
scummvm-rg350-027a2f3710b05fcefc5135ad9a2b562f7c1ab50c.zip
MADS: Disable the hotspot description code for V2 games
This doesn't quite work yet, and it causes crashes, thus it has been disabled for now for these games
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/user_interface.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp
index d4ab0d3dc5..194fda0164 100644
--- a/engines/mads/user_interface.cpp
+++ b/engines/mads/user_interface.cpp
@@ -704,12 +704,15 @@ void UserInterface::loadElements() {
CAT_INV_ANIM, 0);
}
- 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);
+ // 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);
+ }
}
}