From 29a8f245b8753de2432d44b62404e68fefbdbf3f Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 17 Nov 2012 19:46:18 +0000 Subject: [PATCH] Lunatic: update BUILD types with signed->unsigned changes of *stat. git-svn-id: https://svn.eduke32.com/eduke32@3201 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/lunatic/build.lua | 7 ++++--- polymer/eduke32/source/lunatic/defs_common.lua | 8 +++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/polymer/eduke32/source/lunatic/build.lua b/polymer/eduke32/source/lunatic/build.lua index 8c8ad6d41..04505d50e 100644 --- a/polymer/eduke32/source/lunatic/build.lua +++ b/polymer/eduke32/source/lunatic/build.lua @@ -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; diff --git a/polymer/eduke32/source/lunatic/defs_common.lua b/polymer/eduke32/source/lunatic/defs_common.lua index 2d8cbc77d..88eb1449d 100644 --- a/polymer/eduke32/source/lunatic/defs_common.lua +++ b/polymer/eduke32/source/lunatic/defs_common.lua @@ -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;