mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-03 10:41:24 +00:00
- Duke: Clean up player/actor accesses in clearcamera()
.
This commit is contained in:
parent
892eb16d8b
commit
77eb44fd54
1 changed files with 3 additions and 2 deletions
|
@ -332,9 +332,10 @@ void checkavailweapon(DukePlayer* player)
|
||||||
|
|
||||||
void clearcamera(DukePlayer* ps)
|
void clearcamera(DukePlayer* ps)
|
||||||
{
|
{
|
||||||
|
const auto pact = ps->GetActor();
|
||||||
ps->newOwner = nullptr;
|
ps->newOwner = nullptr;
|
||||||
ps->GetActor()->restoreloc();
|
pact->restoreloc();
|
||||||
updatesector(ps->GetActor()->getPosWithOffsetZ(), &ps->cursector);
|
updatesector(pact->getPosWithOffsetZ(), &ps->cursector);
|
||||||
|
|
||||||
DukeStatIterator it(STAT_ACTOR);
|
DukeStatIterator it(STAT_ACTOR);
|
||||||
while (auto k = it.Next())
|
while (auto k = it.Next())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue