mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 17:00:56 +00:00
Lunatic: rename bitint members to *bits instead of *x.
git-svn-id: https://svn.eduke32.com/eduke32@3864 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
01770ec720
commit
dee8dbe092
3 changed files with 8 additions and 8 deletions
|
@ -147,7 +147,7 @@ defs_c.bitint_new_struct_type("int32_t", "SBit32")
|
|||
-- for external exposure.
|
||||
local ACTOR_STRUCT = [[
|
||||
__attribute__((packed)) struct {
|
||||
const int32_t t_data[10]; // 56b sometimes used to hold offsets to con code
|
||||
const int32_t t_data[10];
|
||||
const struct move mv;
|
||||
const struct action ac;
|
||||
const int16_t _padding[1];
|
||||
|
|
|
@ -110,8 +110,7 @@ function bitint_new_struct_type(basetypename, newtypename)
|
|||
end
|
||||
|
||||
function bitint_member(bitint_struct_typename, membname)
|
||||
-- XXX: rename to '~bits' instead of '~x'?
|
||||
return string.format("union { %s %s; %s %sx; };",
|
||||
return string.format("union { %s %s; %s %sbits; };",
|
||||
bitint_to_base_type[bitint_struct_typename], membname,
|
||||
bitint_struct_typename, membname)
|
||||
end
|
||||
|
|
|
@ -60,8 +60,8 @@ if (vol ~= 4) then
|
|||
sector[i].ceilingpal = 2;
|
||||
local ceil = sec.ceiling
|
||||
ceil.shade = sector[i].ceiling.shade + 8
|
||||
ceil.statx:flip(SF.SMOOSH)
|
||||
sec.floorstatx:flip(SF.SWAPXY)
|
||||
ceil.statbits:flip(SF.SMOOSH)
|
||||
sec.floorstatbits:flip(SF.SWAPXY)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -392,10 +392,11 @@ gameactor(1680, AF.chain_end+AF.enemy, 2*TROOPSTRENGTH, "TROOPSTAND", -- LIZTROO
|
|||
|
||||
local actr = actor[i]
|
||||
if (actr:get_count() % 30 == 0) then
|
||||
spr.cstatx:flip(CS.YFLIP)
|
||||
spr.cstatbits:flip(CS.YFLIP)
|
||||
end
|
||||
|
||||
actr.flagsx:test(AF.NVG) -- test of bitint's ":test()" for actor[].flags
|
||||
-- Test of bitint's ":test()" for actor[].flags.
|
||||
actr.flagsbits:test(AF.NVG)
|
||||
|
||||
if (dist < 4096) then
|
||||
-- Duke Vader / Anakin Nukewalker?
|
||||
|
@ -462,7 +463,7 @@ function(aci)
|
|||
if (tspr2) then
|
||||
tspr2.x = tspr2.x + 512*math.cos(gv.totalclock/60)
|
||||
tspr2.y = tspr2.y + 512*math.sin(gv.totalclock/60)
|
||||
tspr2.cstatx:set(CS.TRANS_BITMASK)
|
||||
tspr2.cstatbits:set(CS.TRANS_BITMASK)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue