mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-14 20:00:49 +00:00
- removed unused 'updatesectorexclude' function.
This commit is contained in:
parent
b1290448c5
commit
cf672b508f
2 changed files with 0 additions and 28 deletions
|
@ -512,8 +512,6 @@ int32_t try_facespr_intersect(uspriteptr_t const spr, vec3_t const in,
|
||||||
#define MAXUPDATESECTORDIST 1536
|
#define MAXUPDATESECTORDIST 1536
|
||||||
#define INITIALUPDATESECTORDIST 256
|
#define INITIALUPDATESECTORDIST 256
|
||||||
void updatesector(int32_t const x, int32_t const y, int16_t * const sectnum) ATTRIBUTE((nonnull(3)));
|
void updatesector(int32_t const x, int32_t const y, int16_t * const sectnum) ATTRIBUTE((nonnull(3)));
|
||||||
void updatesectorexclude(int32_t const x, int32_t const y, int16_t * const sectnum,
|
|
||||||
const uint8_t * const excludesectbitmap) ATTRIBUTE((nonnull(3,4)));
|
|
||||||
void updatesectorz(int32_t const x, int32_t const y, int32_t const z, int16_t * const sectnum) ATTRIBUTE((nonnull(4)));
|
void updatesectorz(int32_t const x, int32_t const y, int32_t const z, int16_t * const sectnum) ATTRIBUTE((nonnull(4)));
|
||||||
void updatesectorneighbor(int32_t const x, int32_t const y, int16_t * const sectnum, int32_t initialMaxDistance = INITIALUPDATESECTORDIST, int32_t maxDistance = MAXUPDATESECTORDIST) ATTRIBUTE((nonnull(3)));
|
void updatesectorneighbor(int32_t const x, int32_t const y, int16_t * const sectnum, int32_t initialMaxDistance = INITIALUPDATESECTORDIST, int32_t maxDistance = MAXUPDATESECTORDIST) ATTRIBUTE((nonnull(3)));
|
||||||
void updatesectorneighborz(int32_t const x, int32_t const y, int32_t const z, int16_t * const sectnum, int32_t initialMaxDistance = INITIALUPDATESECTORDIST, int32_t maxDistance = MAXUPDATESECTORDIST) ATTRIBUTE((nonnull(4)));
|
void updatesectorneighborz(int32_t const x, int32_t const y, int32_t const z, int16_t * const sectnum, int32_t initialMaxDistance = INITIALUPDATESECTORDIST, int32_t maxDistance = MAXUPDATESECTORDIST) ATTRIBUTE((nonnull(4)));
|
||||||
|
|
|
@ -2664,32 +2664,6 @@ void updatesector(int32_t const x, int32_t const y, int16_t * const sectnum)
|
||||||
*sectnum = -1;
|
*sectnum = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void updatesectorexclude(int32_t const x, int32_t const y, int16_t * const sectnum, const uint8_t * const excludesectbitmap)
|
|
||||||
{
|
|
||||||
if (inside_exclude_p(x, y, *sectnum, excludesectbitmap))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (*sectnum >= 0 && *sectnum < numsectors)
|
|
||||||
{
|
|
||||||
auto wal = (uwallptr_t)&wall[sector[*sectnum].wallptr];
|
|
||||||
int wallsleft = sector[*sectnum].wallnum;
|
|
||||||
|
|
||||||
do
|
|
||||||
{
|
|
||||||
int const next = wal->nextsector;
|
|
||||||
if (inside_exclude_p(x, y, next, excludesectbitmap))
|
|
||||||
SET_AND_RETURN(*sectnum, next);
|
|
||||||
wal++;
|
|
||||||
}
|
|
||||||
while (--wallsleft);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (bssize_t i=numsectors-1; i>=0; --i)
|
|
||||||
if (inside_exclude_p(x, y, i, excludesectbitmap))
|
|
||||||
SET_AND_RETURN(*sectnum, i);
|
|
||||||
|
|
||||||
*sectnum = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// new: if *sectnum >= MAXSECTORS, *sectnum-=MAXSECTORS is considered instead
|
// new: if *sectnum >= MAXSECTORS, *sectnum-=MAXSECTORS is considered instead
|
||||||
// as starting sector and the 'initial' z check is skipped
|
// as starting sector and the 'initial' z check is skipped
|
||||||
|
|
Loading…
Reference in a new issue