mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-13 20:42:11 +00:00
- Duke: Clean up player/actor accesses in handle_se13()
.
This commit is contained in:
parent
0c8539b0dd
commit
98eacf83b9
1 changed files with 4 additions and 3 deletions
|
@ -2660,11 +2660,12 @@ void handle_se13(DDukeActor* actor)
|
|||
wal.shade = actor->spr.shade;
|
||||
|
||||
sc->floorshade = actor->spr.shade;
|
||||
const auto p = getPlayer(0);
|
||||
|
||||
if (getPlayer(0)->one_parallax_sectnum != nullptr)
|
||||
if (p->one_parallax_sectnum != nullptr)
|
||||
{
|
||||
sc->setceilingtexture(getPlayer(0)->one_parallax_sectnum->ceilingtexture);
|
||||
sc->ceilingshade = getPlayer(0)->one_parallax_sectnum->ceilingshade;
|
||||
sc->setceilingtexture(p->one_parallax_sectnum->ceilingtexture);
|
||||
sc->ceilingshade = p->one_parallax_sectnum->ceilingshade;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue