Clean up Battalion error stuff
authorWuzzy <Wuzzy2@mail.ru>
Mon, 12 Feb 2018 14:50:06 +0100
changeset 12983 8d1bc1de9542
parent 12982 ac93cd8435b4
child 12984 b6d67e975b51
Clean up Battalion error stuff
share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua
--- 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