Fix #656 - base cycling fired on both key down and key up.

This commit is contained in:
Paul Chote
2011-03-22 21:21:34 +13:00
parent a745f3dc40
commit 1ceede4322

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.RA.Widgets
bool ProcessInput(KeyInput e)
{
if (e.Modifiers == Modifiers.None)
if (e.Modifiers == Modifiers.None && e.Event == KeyInputEvent.Down)
{
if (e.KeyName == BaseCycleKey)
return CycleBases();