mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
Lunatic: fix for running with static main engine arrays.
git-svn-id: https://svn.eduke32.com/eduke32@2291 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
48ec616480
commit
3a0734a7b0
3 changed files with 19 additions and 1 deletions
|
@ -51,6 +51,9 @@
|
|||
|
||||
#if !defined DEBUG_MAIN_ARRAYS
|
||||
# define HAVE_CLIPSHAPE_FEATURE
|
||||
const int32_t engine_main_arrays_are_static = 0; // for Lunatic
|
||||
#else
|
||||
const int32_t engine_main_arrays_are_static = 1;
|
||||
#endif
|
||||
|
||||
float debug1, debug2;
|
||||
|
|
|
@ -79,14 +79,27 @@ typedef struct
|
|||
const int8_t _do_not_use[24];
|
||||
} actor_t;
|
||||
#pragma pack(pop)
|
||||
|
||||
int32_t engine_main_arrays_are_static;
|
||||
]]
|
||||
|
||||
ffi.cdef[[
|
||||
if (ffi.C.engine_main_arrays_are_static) then
|
||||
ffi.cdef[[
|
||||
sectortype sector[];
|
||||
walltype wall[];
|
||||
spritetype sprite[];
|
||||
spriteext_t spriteext[];
|
||||
]]
|
||||
else
|
||||
ffi.cdef[[
|
||||
sectortype *sector;
|
||||
walltype *wall;
|
||||
spritetype *sprite;
|
||||
spriteext_t *spriteext;
|
||||
]]
|
||||
end
|
||||
|
||||
ffi.cdef[[
|
||||
const int16_t numsectors, numwalls;
|
||||
|
||||
const int16_t headspritesect[16384+1], headspritestat[1024+1];
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
engine_main_arrays_are_static;
|
||||
|
||||
sector;
|
||||
wall;
|
||||
sprite;
|
||||
|
|
Loading…
Reference in a new issue