boo, koda
authorunc0rr
Mon, 29 Oct 2012 12:51:21 +0400
changeset 7871 ff55648c73bf
parent 7870 e031c963c5df
child 7872 ab6db9e07c4d
boo, koda
hedgewars/uInputHandler.pas
--- 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;