MADS: Further fixes for hotspot highlighting

This commit is contained in:
Paul Gilbert 2014-03-22 21:55:36 -04:00
parent 06766e930b
commit 0b351f79d8
8 changed files with 112 additions and 61 deletions

View file

@ -447,7 +447,7 @@ void UserInterface::loadElements() {
}
if (!_vm->_game->_screenObjects._v832EC || _vm->_game->_screenObjects._v832EC == 2) {
_categoryIndexes[CAT_HOTSPOT - 1] = _vm->_game->_screenObjects.size();
_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);