mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
don't call Command::changeObjectState() on items
svn-id: r11639
This commit is contained in:
parent
4420b15d9f
commit
e1c21c2d8c
@ -442,7 +442,9 @@ int16 Command::executeCommand(uint16 comId, int16 condResult) {
|
||||
break;
|
||||
}
|
||||
|
||||
changeObjectState(_state.selAction, _state.subject[0], com->song, cutDone);
|
||||
if (_state.subject[0] > 0) {
|
||||
changeObjectState(_state.selAction, _state.subject[0], com->song, cutDone);
|
||||
}
|
||||
|
||||
// execute.c l.533-548
|
||||
// FIXME: useless test, as .dog has already been played
|
||||
|
@ -134,7 +134,7 @@ private:
|
||||
//! speak description of selected object
|
||||
void lookAtSelectedObject();
|
||||
|
||||
//! get the current objects under the cursor
|
||||
//! get the current object under the cursor
|
||||
void lookForCurrentObject();
|
||||
|
||||
//! get the current icon panel under the cursor (inventory item or verb)
|
||||
|
Loading…
Reference in New Issue
Block a user