Lines Matching refs:sectnum

556             local sectnum = get_sector_idx(s)
561 ffiC.getzrange(ipos, sectnum, zret+0, zret+1, zret+2, zret+3,
769 if (newsect ~= spr.sectnum) then
778 local newsect = l_updatesector(spr, spr.sectnum, flags)
790 function tspritetype_mt.__index.changesect(tspr, sectnum)
791 if (tspr.sectnum ~= sectnum) then
792 check_sector_idx(sectnum)
793 ffi.cast(spritetype_ptr_ct, tspr).sectnum = sectnum
806 local newsect = l_updatesector(tspr, tspr.sectnum, flags)
807 if (newsect ~= -1 and newsect ~= tspr.sectnum) then
1040 local sectnum = band(RETURN, ffiC.MAXSECTORS-1)
1041 return what, sectnum
1078 function static_members.sprite.changesect(spritenum, sectnum, noerr)
1080 check_sector_idx(sectnum)
1081 if (ffiC.changespritesect(spritenum, sectnum)==-1 and not noerr) then
1104 local newsect = l_updatesector(spr, spr.sectnum, flags)
1105 if (newsect ~= -1 and newsect ~= spr.sectnum) then
1333 function hitscan(pos, sectnum, ray, cliptype)
1334 check_sector_idx(sectnum)
1338 ffiC.hitscan(vec, sectnum, ray.x, ray.y, ray.z, hitdata, cliptype)
1360 function neartag(pos, sectnum, ang, range, tagsearch)
1361 check_sector_idx(sectnum)
1363 ffiC.neartag(pos.x, pos.y, pos.z, sectnum, ang, a, b, c, d, range, tagsearch, nil)
1367 function inside(pos, sectnum)
1368 check_sector_idx(sectnum)
1369 return (ffiC.inside(pos.x, pos.y, sectnum)==1)
1375 function updatesector(pos, sectnum, flags)
1376 if (sectnum ~= -1) then
1377 check_sector_idx(sectnum)
1380 us_retsect[0] = sectnum
1399 function updatesectorz(pos, sectnum, flags)
1400 if (sectnum ~= -1) then
1401 check_sector_idx(sectnum)
1407 us_retsect[0] = sectnum