mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Lunatic: rename hitdata_t member 'sect' to 'sector' for consistency. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@4071 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9d21cff5d3
commit
b2503da051
3 changed files with 7 additions and 7 deletions
|
@ -1366,8 +1366,8 @@ local function A_FurthestVisiblePoint(aci, otherspr)
|
|||
local dother = manhatdist(hit.pos, otherspr)
|
||||
local dactor = manhatdist(hit.pos, sprite[aci])
|
||||
|
||||
if (dother < dactor and hit.sect >= 0) then
|
||||
if (cansee(hit.pos, hit.sect, otherspr^(16*256), otherspr.sectnum)) then
|
||||
if (dother < dactor and hit.sector >= 0) then
|
||||
if (cansee(hit.pos, hit.sector, otherspr^(16*256), otherspr.sectnum)) then
|
||||
return hit
|
||||
end
|
||||
end
|
||||
|
@ -1437,7 +1437,7 @@ function _hitscan(x, y, z, sectnum, vx, vy, vz, cliptype)
|
|||
local srcv = ivec3(x, y, z)
|
||||
local ray = ivec3(vx, vy, vz)
|
||||
local hit = hitscan(srcv, sectnum, ray, cliptype)
|
||||
return hit.sect, hit.wall, hit.sprite, hit.pos.x, hit.pos.y, hit.pos.z
|
||||
return hit.sector, hit.wall, hit.sprite, hit.pos.x, hit.pos.y, hit.pos.z
|
||||
end
|
||||
|
||||
-- CON "neartag" command
|
||||
|
|
|
@ -269,7 +269,7 @@ typedef struct {
|
|||
|
||||
typedef struct {
|
||||
vec3_t pos;
|
||||
int16_t sprite, wall, sect;
|
||||
int16_t sprite, wall, sector;
|
||||
} hitdata_t;
|
||||
]],
|
||||
ffi.typeof(maybe_strip_const(SECTOR_STRUCT)),
|
||||
|
|
|
@ -491,9 +491,9 @@ gameactor{ D.APLAYER, AF.chain_end,
|
|||
local ray = xmath.kangvec(ps.ang, -(ps.horiz-100)*2048)
|
||||
|
||||
local hit = hitscan(ps.pos, ps.cursectnum, ray, 0)
|
||||
if (hit.sect >= 0) then
|
||||
if (hit.sector >= 0) then
|
||||
sprite[chair]:setpos(hit.pos)
|
||||
sprite.changesect(chair, hit.sect)
|
||||
sprite.changesect(chair, hit.sector)
|
||||
end
|
||||
end
|
||||
}
|
||||
|
@ -570,7 +570,7 @@ gameactor
|
|||
if (aimtspr) then
|
||||
aimtspr.pal = 2
|
||||
aimtspr:set_picnum(555)
|
||||
aimtspr:setpos(hit.pos, hit.sect)
|
||||
aimtspr:setpos(hit.pos, hit.sector)
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
|
Loading…
Reference in a new issue