Lunatic: update BUILD types with signed->unsigned changes of *stat.

git-svn-id: https://svn.eduke32.com/eduke32@3201 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-11-17 19:46:18 +00:00
parent 83ae3a407a
commit 29a8f245b8
2 changed files with 9 additions and 6 deletions

View file

@ -22,7 +22,7 @@ typedef struct
{
int16_t wallptr, wallnum;
int32_t ceilingz, floorz;
int16_t ceilingstat, floorstat;
uint16_t ceilingstat, floorstat;
int16_t ceilingpicnum, ceilingheinum;
int8_t ceilingshade;
uint8_t ceilingpal, ceilingxpanning, ceilingypanning;
@ -37,7 +37,7 @@ typedef struct
{
int32_t x, y;
int16_t point2, nextwall, nextsector;
int16_t cstat;
uint16_t cstat;
int16_t picnum, overpicnum;
int8_t shade;
uint8_t pal, xrepeat, yrepeat, xpanning, ypanning;
@ -47,7 +47,8 @@ typedef struct
typedef struct
{
int32_t x, y, z;
int16_t cstat, picnum;
uint16_t cstat;
int16_t picnum;
int8_t shade;
uint8_t pal, clipdist, filler;
uint8_t xrepeat, yrepeat;

View file

@ -21,13 +21,14 @@ module(...)
--== Core engine structs ==--
-- TODO: provide getters for unsigned {hi,lo}tag?
ffi.cdef[[
#pragma pack(push,1)
typedef struct
{
const int16_t wallptr, wallnum;
int32_t ceilingz, floorz;
int16_t ceilingstat, floorstat;
uint16_t ceilingstat, floorstat;
int16_t ceilingpicnum, ceilingheinum;
int8_t ceilingshade;
uint8_t ceilingpal, ceilingxpanning, ceilingypanning;
@ -42,7 +43,7 @@ typedef struct
{
int32_t x, y;
const int16_t point2, nextwall, nextsector;
int16_t cstat;
uint16_t cstat;
int16_t picnum, overpicnum;
int8_t shade;
uint8_t pal, xrepeat, yrepeat, xpanning, ypanning;
@ -52,7 +53,8 @@ typedef struct
typedef struct
{
int32_t x, y, z;
int16_t cstat, picnum;
uint16_t cstat;
int16_t picnum;
int8_t shade;
uint8_t pal, clipdist, filler;
uint8_t xrepeat, yrepeat;