mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 17:31:00 +00:00
- eliminated some leftover 16 bit values used for storing indices.
This commit is contained in:
parent
977d668bef
commit
0eba3335c6
6 changed files with 8 additions and 8 deletions
|
@ -435,7 +435,7 @@ inline void updatesectorz(int32_t const x, int32_t const y, int32_t const z, int
|
||||||
*sectnum = snum;
|
*sectnum = snum;
|
||||||
}
|
}
|
||||||
|
|
||||||
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, int * 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)));
|
||||||
|
|
||||||
int findwallbetweensectors(int sect1, int sect2);
|
int findwallbetweensectors(int sect1, int sect2);
|
||||||
|
|
|
@ -1358,7 +1358,7 @@ int findwallbetweensectors(int sect1, int sect2)
|
||||||
//
|
//
|
||||||
void updatesector(int32_t const x, int32_t const y, int * const sectnum)
|
void updatesector(int32_t const x, int32_t const y, int * const sectnum)
|
||||||
{
|
{
|
||||||
int16_t sect = *sectnum;
|
int sect = *sectnum;
|
||||||
updatesectorneighbor(x, y, §, INITIALUPDATESECTORDIST, MAXUPDATESECTORDIST);
|
updatesectorneighbor(x, y, §, INITIALUPDATESECTORDIST, MAXUPDATESECTORDIST);
|
||||||
if (sect != -1)
|
if (sect != -1)
|
||||||
SET_AND_RETURN(*sectnum, sect);
|
SET_AND_RETURN(*sectnum, sect);
|
||||||
|
|
|
@ -1117,8 +1117,8 @@ static void movetripbomb(DDukeActor *actor)
|
||||||
s->z -= (3 << 8);
|
s->z -= (3 << 8);
|
||||||
|
|
||||||
// Laser fix from EDuke32.
|
// Laser fix from EDuke32.
|
||||||
int16_t const oldSectNum = s->sectnum;
|
int const oldSectNum = s->sectnum;
|
||||||
int16_t curSectNum = s->sectnum;
|
int curSectNum = s->sectnum;
|
||||||
|
|
||||||
updatesectorneighbor(s->x, s->y, &curSectNum, 1024, 2048);
|
updatesectorneighbor(s->x, s->y, &curSectNum, 1024, 2048);
|
||||||
changeactorsect(actor, curSectNum);
|
changeactorsect(actor, curSectNum);
|
||||||
|
|
|
@ -187,7 +187,7 @@ inline int clipmove_ex(int* x, int* y, int* z, int* sect, int xv, int yv, int wa
|
||||||
return result.setFromEngine(res);
|
return result.setFromEngine(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void getzrange_ex(int x, int y, int z, int16_t sectnum, int32_t* ceilz, Collision& ceilhit, int32_t* florz, Collision& florhit, int32_t walldist, uint32_t cliptype)
|
inline void getzrange_ex(int x, int y, int z, int sectnum, int32_t* ceilz, Collision& ceilhit, int32_t* florz, Collision& florhit, int32_t walldist, uint32_t cliptype)
|
||||||
{
|
{
|
||||||
int ch, fh;
|
int ch, fh;
|
||||||
getzrange(x, y, z, sectnum, ceilz, &ch, florz, &fh, walldist, cliptype);
|
getzrange(x, y, z, sectnum, ceilz, &ch, florz, &fh, walldist, cliptype);
|
||||||
|
@ -195,7 +195,7 @@ inline void getzrange_ex(int x, int y, int z, int16_t sectnum, int32_t* ceilz, C
|
||||||
florhit.setFromEngine(fh);
|
florhit.setFromEngine(fh);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int hitscan(int x, int y, int z, int16_t sectnum, int32_t vx, int32_t vy, int32_t vz,
|
inline int hitscan(int x, int y, int z, int sectnum, int32_t vx, int32_t vy, int32_t vz,
|
||||||
int* hitsect, int* hitwall, DDukeActor** hitspr, int* hitx, int* hity, int* hitz, uint32_t cliptype)
|
int* hitsect, int* hitwall, DDukeActor** hitspr, int* hitx, int* hity, int* hitz, uint32_t cliptype)
|
||||||
{
|
{
|
||||||
short hitsprt, hitsct, hitwal;
|
short hitsprt, hitsct, hitwal;
|
||||||
|
|
|
@ -105,7 +105,7 @@ int animatetarget[MAXANIMATES];
|
||||||
int animategoal[MAXANIMATES];
|
int animategoal[MAXANIMATES];
|
||||||
int animatevel[MAXANIMATES];
|
int animatevel[MAXANIMATES];
|
||||||
int numclouds; // cloudy skies
|
int numclouds; // cloudy skies
|
||||||
int16_t clouds[256];
|
int clouds[256];
|
||||||
float cloudx;
|
float cloudx;
|
||||||
float cloudy;
|
float cloudy;
|
||||||
int cloudclock;
|
int cloudclock;
|
||||||
|
|
|
@ -90,7 +90,7 @@ extern int8_t animatetype[MAXANIMATES];
|
||||||
extern int animategoal[MAXANIMATES];
|
extern int animategoal[MAXANIMATES];
|
||||||
extern int animatevel[MAXANIMATES];
|
extern int animatevel[MAXANIMATES];
|
||||||
|
|
||||||
extern int16_t clouds[256];
|
extern int clouds[256];
|
||||||
extern float cloudx;
|
extern float cloudx;
|
||||||
extern float cloudy;
|
extern float cloudy;
|
||||||
extern int cloudclock;
|
extern int cloudclock;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue