forked from 0ad/0ad
determineAction only when needed
This was SVN commit r17024.
This commit is contained in:
parent
012bf32673
commit
7e18c0fd9e
@ -60,9 +60,9 @@ function updateCursorAndTooltip()
|
||||
var informationTooltip = Engine.GetGUIObjectByName("informationTooltip");
|
||||
if (!mouseIsOverObject)
|
||||
{
|
||||
var action = determineAction(mouseX, mouseY);
|
||||
if (inputState == INPUT_NORMAL || inputState == INPUT_PRESELECTEDACTION)
|
||||
{
|
||||
let action = determineAction(mouseX, mouseY);
|
||||
if (action)
|
||||
{
|
||||
if (action.cursor)
|
||||
|
Loading…
Reference in New Issue
Block a user