1
0
forked from 0ad/0ad

Fix triple-click's accepted inter-click timing to match double-click's

This was SVN commit r9468.
This commit is contained in:
Ykkrosh 2011-05-06 22:24:03 +00:00
parent cd7abda9f1
commit f6ffe7f121

View File

@ -743,6 +743,8 @@ function handleInputAfterGui(ev)
// Select units matching exact template name (same rank)
templateToMatch = Engine.GuiInterfaceCall("GetEntityState", selectedEntity).template;
doubleClicked = true;
// Reset the timer so the user has an extra period 'doubleClickTimer' to do a triple-click
doubleClickTimer = now.getTime();
}
else
{