mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- Exhumed: Move a line out of doPlayerMovement()
and into updatePlayerViewSector()
.
* It needs to come after the function it's been moved into, but its confusing why its calculating a new pos delta when there's one on the stack. * By directly nesting it in, it's a lot clearer.
This commit is contained in:
parent
d858856e06
commit
cb3fec39df
1 changed files with 2 additions and 2 deletions
|
@ -1587,6 +1587,8 @@ static void updatePlayerViewSector(Player* const pPlayer, const Collision& nMove
|
|||
pLocalEyeSect = pPlayer->pPlayerViewSect;
|
||||
CheckAmbience(pLocalEyeSect);
|
||||
}
|
||||
|
||||
pPlayer->nPlayerD = pPlayerActor->spr.pos - spr_pos;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@ -1757,8 +1759,6 @@ static bool doPlayerMovement(Player* const pPlayer)
|
|||
doPlayerPitch(pPlayer, -posdelta.Z * 2.);
|
||||
updatePlayerViewSector(pPlayer, nMove, spr_pos, spr_vel, bUnderwater);
|
||||
|
||||
pPlayer->nPlayerD = (pPlayerActor->spr.pos - spr_pos);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue