don't call Command::changeObjectState() on items

svn-id: r11639
This commit is contained in:
Gregory Montoir 2003-12-14 20:24:29 +00:00
parent 4420b15d9f
commit e1c21c2d8c
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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)