- deal with s() in shared code.

clip.cpp was left alone, except for the actual call.
This commit is contained in:
Christoph Oelckers 2021-12-22 23:14:16 +01:00
parent 1f57322d56
commit f602cf3806
8 changed files with 30 additions and 40 deletions

View file

@ -565,15 +565,14 @@ void renderDrawMapView(int cposx, int cposy, int czoom, int cang)
TSectIterator<DCoreActor> it(sect);
while (auto act = it.Next())
{
auto spr = &act->s();
if (spr->cstat & CSTAT_SPRITE_INVISIBLE)
if (act->spr.cstat & CSTAT_SPRITE_INVISIBLE)
continue;
if (spr->cstat & CSTAT_SPRITE_ALIGNMENT_FLOOR) // floor and slope sprites
if (act->spr.cstat & CSTAT_SPRITE_ALIGNMENT_FLOOR) // floor and slope sprites
{
if ((spr->cstat & (CSTAT_SPRITE_ONE_SIDE | CSTAT_SPRITE_YFLIP)) == (CSTAT_SPRITE_ONE_SIDE | CSTAT_SPRITE_YFLIP))
if ((act->spr.cstat & (CSTAT_SPRITE_ONE_SIDE | CSTAT_SPRITE_YFLIP)) == (CSTAT_SPRITE_ONE_SIDE | CSTAT_SPRITE_YFLIP))
continue; // upside down
floorsprites.Push(spr);
floorsprites.Push(&act->spr);
}
}