mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-02 15:38:59 +00:00
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
This commit is contained in:
parent
87ad5a8397
commit
027a2f3710
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user