hedgewars/uInputHandler.pas
changeset 7871 ff55648c73bf
parent 7870 e031c963c5df
child 7876 a366fbe91b58
--- a/hedgewars/uInputHandler.pas	Mon Oct 29 05:12:24 2012 +0100
+++ b/hedgewars/uInputHandler.pas	Mon Oct 29 12:51:21 2012 +0400
@@ -146,9 +146,9 @@
 {$ELSE}
     // on other systems use this shortcut only if the keys are not bound to any command
     if tkbd[KeyNameToCode('left_ctrl')] or tkbd[KeyNameToCode('right_ctrl')] then
-        if ((CurrentBinds([KeyNameToCode('left_ctrl')]:= '') or
-             CurrentBinds([KeyNameToCode('right_ctrl')]:= '')) and
-             CurrentBinds([closeKeyCode]:= '') then
+        if ((CurrentBinds[KeyNameToCode('left_ctrl')] = '') or
+            (CurrentBinds[KeyNameToCode('right_ctrl')] = '')) and
+            (CurrentBinds[closeKeyCode] = '') then
 {$ENDIF}
         ParseCommand('forcequit', true);
     end;