Controls now tries to handle first actionbar-item before using hardcoded behaviour on pressing Space

rope
Bernhard Bonigl 2012-04-14 18:41:56 +02:00
parent 57a07a95ab
commit b4fb51249e
1 changed files with 6 additions and 0 deletions

View File

@ -660,6 +660,12 @@ public func ObjectControl(int plr, int ctrl, int x, int y, int strength, bool re
// if the interaction-command has already been handled by a hotkey (else it'd double-interact)
else if(hotkeypressed)
return false;
// check if we can handle it by simply accessing the first actionbar item (for consistency)
else
{
if(this->~ControlHotkey(0))
return true;
}
}
// Contents menu