mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +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)
|
||||
{
|
||||
const auto pact = ps->GetActor();
|
||||
ps->newOwner = nullptr;
|
||||
ps->GetActor()->restoreloc();
|
||||
updatesector(ps->GetActor()->getPosWithOffsetZ(), &ps->cursector);
|
||||
pact->restoreloc();
|
||||
updatesector(pact->getPosWithOffsetZ(), &ps->cursector);
|
||||
|
||||
DukeStatIterator it(STAT_ACTOR);
|
||||
while (auto k = it.Next())
|
||||
|
|
Loading…
Reference in a new issue