Fix /hta, /hsa and /hya commands not writing message in chat 0.9.24
authorWuzzy <Wuzzy2@mail.ru>
Fri, 27 Jul 2018 00:00:04 +0200
branch0.9.24
changeset 13568 5a1e4796e431
parent 13562 ea05d4b0b6b0
child 13570 730e7837d9df
Fix /hta, /hsa and /hya commands not writing message in chat
ChangeLog.txt
hedgewars/uGearsHedgehog.pas
--- a/ChangeLog.txt	Thu Jul 26 14:18:23 2018 +0200
+++ b/ChangeLog.txt	Fri Jul 27 00:00:04 2018 +0200
@@ -7,6 +7,7 @@
  * Limit number of droplets to 50 (temporary bugfix)
  * Prevent creation of schemes with same name as an existing scheme
  * Fix teleport tooltip claiming it doesn't end turn in hog placing phase with inf. attack
+ * Fix /hta, /hsa and /hya commands not writing message in chat
  + Add default controls for controllers (see README)
 
 ====================== 0.9.24.1 ====================
--- a/hedgewars/uGearsHedgehog.pas	Thu Jul 26 14:18:23 2018 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Fri Jul 27 00:00:04 2018 +0200
@@ -524,6 +524,7 @@
                     speech^.Text:= SpeechText;
                     speech^.Hedgehog:= Gear^.Hedgehog;
                     speech^.FrameTicks:= SpeechType;
+                    AddChatString(#9+'[' + Gear^.Hedgehog^.Name + '] '+SpeechText);
                     end;
                 SpeechText:= ''
                 end;