mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
clip.cpp usectortype cleanup
git-svn-id: https://svn.eduke32.com/eduke32@7585 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d04c4203c5
commit
bb517b73e3
1 changed files with 6 additions and 6 deletions
|
@ -1088,7 +1088,7 @@ int32_t clipmove(vec3_t * const pos, int16_t * const sectnum, int32_t xvect, int
|
|||
{
|
||||
if (wal->nextsector>=0)
|
||||
{
|
||||
const usectortype *sec2 = (usectortype *)§or[wal->nextsector];
|
||||
auto const sec2 = (usectortype *)§or[wal->nextsector];
|
||||
|
||||
clipmove_tweak_pos(pos, diff.x, diff.y, p1.x, p1.y, p2.x, p2.y, &v.x, &v.y);
|
||||
|
||||
|
@ -1141,7 +1141,7 @@ int32_t clipmove(vec3_t * const pos, int16_t * const sectnum, int32_t xvect, int
|
|||
|
||||
if (clipyou == 0)
|
||||
{
|
||||
const usectortype *sec2 = (usectortype *)§or[wal->nextsector];
|
||||
auto const sec2 = (usectortype *)§or[wal->nextsector];
|
||||
int32_t daz2 = getceilzofslope(wal->nextsector, v.x, v.y);
|
||||
|
||||
clipyou = ((sec2->ceilingstat&1) == 0 &&
|
||||
|
@ -1460,7 +1460,7 @@ int32_t pushmove(vec3_t * const vect, int16_t * const sectnum,
|
|||
if (wal->cstat&dawalclipmask) j = 1;
|
||||
if (j == 0)
|
||||
{
|
||||
const usectortype *const sec2 = (usectortype *)§or[wal->nextsector];
|
||||
auto const sec2 = (usectortype *)§or[wal->nextsector];
|
||||
int32_t daz2;
|
||||
|
||||
//Find closest point on wall (dax, day) to (vect->x, vect->y)
|
||||
|
@ -1622,7 +1622,7 @@ restart_grand:
|
|||
#endif
|
||||
////////// Walls //////////
|
||||
|
||||
const sectortype *const startsec = §or[clipsectorlist[clipsectcnt]];
|
||||
auto const startsec = (usectortype *)§or[clipsectorlist[clipsectcnt]];
|
||||
const int startwall = startsec->wallptr;
|
||||
const int endwall = startwall + startsec->wallnum;
|
||||
|
||||
|
@ -1649,7 +1649,7 @@ restart_grand:
|
|||
continue;
|
||||
|
||||
if (wall[j].cstat&dawalclipmask) continue; // XXX?
|
||||
const sectortype *const sec = §or[k];
|
||||
auto const sec = (usectortype *)§or[k];
|
||||
|
||||
#ifdef HAVE_CLIPSHAPE_FEATURE
|
||||
if (curspr)
|
||||
|
@ -2141,7 +2141,7 @@ restart_grand:
|
|||
}
|
||||
#endif
|
||||
dasector = clipsectorlist[tempshortcnt];
|
||||
auto const * sec = (usectortype *)§or[dasector];
|
||||
auto const sec = (usectortype *)§or[dasector];
|
||||
|
||||
i = 1;
|
||||
#ifdef HAVE_CLIPSHAPE_FEATURE
|
||||
|
|
Loading…
Reference in a new issue