hedgewars/uScript.pas
changeset 13642 3d14950641a4
parent 13627 605767bbd022
child 13651 56a925256039
--- a/hedgewars/uScript.pas	Wed Aug 08 14:10:32 2018 +0200
+++ b/hedgewars/uScript.pas	Wed Aug 08 14:38:54 2018 +0200
@@ -650,7 +650,7 @@
     if CheckAndFetchParamCount(L, 1, 3, call, params, cg) then
         begin
         if cg = 1 then
-            AddCaption(lua_tostringA(L, 1), cWhiteColor, capgrpMessage)
+            AddCaption(lua_tostringA(L, 1), capcolDefault, capgrpMessage)
         else
             begin
             cg:= LuaToCapGroupOrd(L, 3, call, params);
@@ -3961,6 +3961,9 @@
 for we:= Low(TWorldEdge) to High(TWorldEdge) do
     ScriptSetInteger(EnumToStr(we), ord(we));
 
+ScriptSetInteger('capcolDefault'    , capcolDefault);
+ScriptSetInteger('capcolSetting'    , capcolSetting);
+
 ScriptSetInteger('gstDrowning'      , gstDrowning);
 ScriptSetInteger('gstHHDriven'      , gstHHDriven);
 ScriptSetInteger('gstMoving'        , gstMoving);