mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- Duke: Clean up player/actor accesses in rrra_specialstats()
.
This commit is contained in:
parent
ca4f00b6b3
commit
bdd02953c3
1 changed files with 4 additions and 3 deletions
|
@ -448,10 +448,11 @@ static void rrra_specialstats()
|
|||
movesprite_ex(act, DVector3(0, 0, act->spr.extra / 256.), CLIPMASK0, coll);
|
||||
}
|
||||
|
||||
if (getPlayer(screenpeek)->MamaEnd > 0)
|
||||
const auto spp = getPlayer(screenpeek);
|
||||
if (spp->MamaEnd > 0)
|
||||
{
|
||||
getPlayer(screenpeek)->MamaEnd--;
|
||||
if (getPlayer(screenpeek)->MamaEnd == 0)
|
||||
spp->MamaEnd--;
|
||||
if (spp->MamaEnd == 0)
|
||||
{
|
||||
CompleteLevel(nullptr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue