Fix /hta, /hsa and /hya commands not writing message in chat
authorWuzzy <Wuzzy2@mail.ru>
Fri, 27 Jul 2018 00:00:04 +0200
changeset 13564 d8da70fdec16
parent 13562 0ff20bb15037
child 13566 acc69f506914
Fix /hta, /hsa and /hya commands not writing message in chat
ChangeLog.txt
hedgewars/uGearsHedgehog.pas
--- a/ChangeLog.txt	Thu Jul 26 19:08:39 2018 +0200
+++ b/ChangeLog.txt	Fri Jul 27 00:00:04 2018 +0200
@@ -14,6 +14,7 @@
  * Fix video recorder not working when game audio was disabled
  * Fix cursor teleporting to center after leaving game with a video recording
  * 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
 
 Frontend:
  * Controllers are detected again
--- a/hedgewars/uGearsHedgehog.pas	Thu Jul 26 19:08:39 2018 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Fri Jul 27 00:00:04 2018 +0200
@@ -576,6 +576,7 @@
                     speech^.Text:= SpeechText;
                     speech^.Hedgehog:= Gear^.Hedgehog;
                     speech^.FrameTicks:= SpeechType;
+                    AddChatString(#9+'[' + Gear^.Hedgehog^.Name + '] '+SpeechText);
                     end;
                 SpeechText:= ''
                 end;