hedgewars/uScript.pas
changeset 9718 563a34cd8398
parent 9670 1954f692e8c6
child 9748 b0286b0c91ce
equal deleted inserted replaced
9717:b8b7ef99a084 9718:563a34cd8398
  1789 function lc_getcampaignvar(L : Plua_State): LongInt; Cdecl;
  1789 function lc_getcampaignvar(L : Plua_State): LongInt; Cdecl;
  1790 begin
  1790 begin
  1791     if (lua_gettop(L) <> 1) then
  1791     if (lua_gettop(L) <> 1) then
  1792         LuaError('Lua: Wrong number of parameters passed to GetCampaignVar!')
  1792         LuaError('Lua: Wrong number of parameters passed to GetCampaignVar!')
  1793     else
  1793     else
  1794         SendIPCAndWaitReply('V?' + lua_tostring(L, 1));
  1794         SendIPCAndWaitReply('V?' + lua_tostring(L, 1) + #0);
  1795     lua_pushstring(L, str2pchar(CampaignVariable));
  1795     lua_pushstring(L, str2pchar(CampaignVariable));
  1796     lc_getcampaignvar := 1;
  1796     lc_getcampaignvar := 1;
  1797 end;
  1797 end;
  1798 
  1798 
  1799 function lc_hidehog(L: Plua_State): LongInt; Cdecl;
  1799 function lc_hidehog(L: Plua_State): LongInt; Cdecl;