determineAction only when needed

This was SVN commit r17024.
This commit is contained in:
mimo 2015-09-15 18:39:03 +00:00
parent 012bf32673
commit 7e18c0fd9e

View File

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