Simplified handleChapterSelectionUpdate()

svn-id: r18983
This commit is contained in:
Eugene Sandulenko 2005-10-09 01:20:46 +00:00
parent d02c35c821
commit d972e948c3

View file

@ -1215,23 +1215,11 @@ void Interface::handleOptionClick(const Point& mousePoint) {
} }
void Interface::handleChapterSelectionUpdate(const Point& mousePoint) { void Interface::handleChapterSelectionUpdate(const Point& mousePoint) {
uint16 objectId =ID_NOTHING; uint16 objectId;
int16 objectFlags;
uint16 newObjectId;
// FIXME: Original handled more object types here. // FIXME: Original handled more object types here.
newObjectId = _vm->_actor->hitTest(mousePoint, true); objectId = _vm->_actor->hitTest(mousePoint, true);
if (newObjectId != ID_NOTHING) {
if (objectTypeId(newObjectId) == kGameObjectObject) {
objectId = newObjectId;
objectFlags = 0;
} else {
objectId = newObjectId;
objectFlags = kObjUseWith;
}
}
if (objectId != _vm->_script->_pointerObject) { if (objectId != _vm->_script->_pointerObject) {
_vm->_script->_pointerObject = objectId; _vm->_script->_pointerObject = objectId;