Fix broken chat
authorunc0rr
Tue, 05 Nov 2013 11:04:26 +0400
changeset 9676 ce7396d4eaf7
parent 9675 295636ec930a
child 9677 71626318f80e
child 9678 aa349a876c93
Fix broken chat
hedgewars/uChat.pas
--- a/hedgewars/uChat.pas	Mon Nov 04 22:41:55 2013 -0500
+++ b/hedgewars/uChat.pas	Tue Nov 05 11:04:26 2013 +0400
@@ -242,9 +242,9 @@
     exit
     end;
 
-// These 3 are same as above, only are to make the hedgehog say it on next attack
 if (s[1] = '/') then
     begin
+    // These 3 are same as above, only are to make the hedgehog say it on next attack
     if (copy(s, 1, 5) = '/hsa ') then
         begin
         if CurrentTeam^.ExtDriven then
@@ -297,9 +297,9 @@
                 exit
                 end;
         end
-        else
-            ParseCommand('/say ' + s, true);
     end
+    else
+        ParseCommand('/say ' + s, true);
 end;
 
 procedure CleanupInput;