Fixes so that windows ver would build (and work)

develop
Warmist 2011-08-25 07:22:31 +03:00
parent 064719375c
commit 25b689b778
2 changed files with 5 additions and 1 deletions

@ -1,6 +1,6 @@
function friendship_in.patch()
pos=GetTextRegion().start
local crace=add_race --offsets.getEx("CurrentRace")
local crace=VersionInfo.getGroup("Creatures"):getAddress("current_race")
hits={}
i=1
repeat

@ -129,7 +129,11 @@ static int GetMod(lua_State *L)
st.push(pos);
return 1;
}
#ifdef LINUX_BUILD
static size_t __attribute__((stdcall)) PushValue(size_t ret,uint32_t eax,uint32_t ebx,uint32_t ecx,uint32_t edx,uint32_t edi,uint32_t esi,uint32_t esp,uint32_t ebp)
#else
static size_t __stdcall PushValue(size_t ret,uint32_t eax,uint32_t ebx,uint32_t ecx,uint32_t edx,uint32_t edi,uint32_t esi,uint32_t esp,uint32_t ebp)
#endif
{
lua::state st=lua::glua::Get();
st.getglobal("OnFunction");