No commit message
authorunc0rr
Wed, 03 Oct 2012 12:04:29 +0400
changeset 7722 1518827049ed
parent 7721 2b1ad418ba39
child 7723 ca05b576ec74
No commit message
hedgewars/uChat.pas
hedgewars/uCommandHandlers.pas
--- a/hedgewars/uChat.pas	Mon Oct 01 12:01:39 2012 +0400
+++ b/hedgewars/uChat.pas	Wed Oct 03 12:04:29 2012 +0400
@@ -376,6 +376,7 @@
     else
         begin
         // err, does anyone have any documentation on this sequence?
+        // ^^ isn't it obvious? 27 is esc, 32 is space, inbetween is "/team"
         KeyPressChat(27);
         KeyPressChat(47);
         KeyPressChat(116);
--- a/hedgewars/uCommandHandlers.pas	Mon Oct 01 12:01:39 2012 +0400
+++ b/hedgewars/uCommandHandlers.pas	Wed Oct 03 12:04:29 2012 +0400
@@ -71,12 +71,12 @@
 begin
     s:= s; // avoid compiler hint
     if GameState = gsConfirm then
-    begin
+        begin
         SendIPC(_S'Q');
         GameState:= gsExit
-    end
-else
-    ParseCommand('chat team', true);
+        end
+    else
+        ParseCommand('chat team', true);
 end;
 
 procedure chHalt (var s: shortstring);