share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua
changeset 12978 8d1bc1de9542
parent 12812 59cb9bd8331c
child 12979 b6d67e975b51
--- a/share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua	Mon Feb 12 11:03:48 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua	Mon Feb 12 14:50:06 2018 +0100
@@ -738,8 +738,8 @@
 
 function getHogInfo(hog, info)
   if hog == nil then
-    AddCaption(loc("ERROR [getHogInfo]: Hog is nil!"), 0xFFFFFFFF, capgrpMessage)
-    WriteLnToConsole(loc("ERROR [getHogInfo]: Hog is nil!"), 0xFFFFFFFF, capgrpMessage)
+    WriteLnToChat("ERROR [getHogInfo]: Hog is nil!")
+    WriteLnToConsole("ERROR [getHogInfo]: Hog is nil!")
     return
   end
 
@@ -752,8 +752,8 @@
 
 function setHogInfo(hog)
   if hog == nil then
-    AddCaption(loc("ERROR [getHogInfo]: Hog is nil!"), 0xFFFFFFFF, capgrpMessage)
-    WriteLnToConsole(loc("ERROR [getHogInfo]: Hog is nil!"), 0xFFFFFFFF, capgrpMessage)
+    WriteLnToChat("ERROR [getHogInfo]: Hog is nil!")
+    WriteLnToConsole("ERROR [getHogInfo]: Hog is nil!")
     return
   end