equal
deleted
inserted
replaced
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; |