mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-13 20:42:11 +00:00
- Duke: Clean up player/actor accesses in hitradius()
.
This commit is contained in:
parent
76f47a61bb
commit
091c6cb9dd
1 changed files with 4 additions and 4 deletions
|
@ -1175,16 +1175,16 @@ void hitradius(DDukeActor* actor, int r, int hp1, int hp2, int hp3, int hp4
|
|||
{
|
||||
if (act2->isPlayer())
|
||||
{
|
||||
int p = act2->PlayerIndex();
|
||||
const auto p = getPlayer(act2->PlayerIndex());
|
||||
|
||||
if (act2->attackertype == DukeFlamethrowerFlameClass && Owner->isPlayer())
|
||||
{
|
||||
getPlayer(p)->numloogs = -1 - actor->spr.yint;
|
||||
p->numloogs = -1 - actor->spr.yint;
|
||||
}
|
||||
|
||||
if (getPlayer(p)->newOwner != nullptr)
|
||||
if (p->newOwner != nullptr)
|
||||
{
|
||||
clearcamera(getPlayer(p));
|
||||
clearcamera(p);
|
||||
}
|
||||
}
|
||||
act2->SetHitOwner(actor->GetOwner());
|
||||
|
|
Loading…
Reference in a new issue