fixed give verb

fixed occasional verbs redraw

svn-id: r18113
This commit is contained in:
Andrew Kurushin 2005-05-15 17:45:59 +00:00
parent 2425e657a2
commit 1d31cd1223
5 changed files with 25 additions and 23 deletions

View file

@ -569,21 +569,19 @@ void Interface::handleCommandUpdate(const Point& mousePoint) {
panelButton = _mainPanel.hitTest(mousePoint, kPanelAllButtons);
if (panelButton != NULL) {
if (panelButton->type == kPanelButtonArrow) {
if (panelButton->state == 1) {
//TODO: insert timeout catchup
inventoryChangePos(panelButton->id);
}
draw();
}
bool changed = false;
if (panelButton->type == kPanelButtonInventory) {
_vm->_script->whichObject(mousePoint);
}
if ((panelButton != NULL) && (panelButton->type == kPanelButtonArrow)) {
if (panelButton->state == 1) {
//TODO: insert timeout catchup
inventoryChangePos(panelButton->id);
}
changed = true;
} else {
_vm->_script->whichObject(mousePoint);
}
bool changed = (panelButton != _mainPanel.currentButton);
changed = changed || (panelButton != _mainPanel.currentButton);
_mainPanel.currentButton = panelButton;
if (changed) {
draw();