mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- SW: Wrap calls that set PLAYER::PlayerPrevPosition.Z
.
This commit is contained in:
parent
bf833fcfa3
commit
2d351b2c28
2 changed files with 7 additions and 2 deletions
|
@ -750,6 +750,11 @@ struct PLAYER
|
|||
{
|
||||
return PlayerPrevPosition.XY();
|
||||
}
|
||||
|
||||
void posprevZset(const double val)
|
||||
{
|
||||
PlayerPrevPosition.Z = val;
|
||||
}
|
||||
};
|
||||
|
||||
extern PLAYER Player[MAX_SW_PLAYERS_REG+1];
|
||||
|
|
|
@ -2221,7 +2221,7 @@ void DoPlayerMove(PLAYER* pp)
|
|||
|
||||
if (interpolate_ride)
|
||||
{
|
||||
pp->PlayerPrevPosition.Z = pp->posZget();
|
||||
pp->posprevZset(pp->posZget());
|
||||
pp->angle.backup();
|
||||
}
|
||||
|
||||
|
@ -7357,7 +7357,7 @@ void PlayerSpawnPosition(PLAYER* pp)
|
|||
if (pp->posZget() > fz - PLAYER_HEIGHTF)
|
||||
{
|
||||
pp->posZset(fz - PLAYER_HEIGHTF);
|
||||
pp->PlayerPrevPosition.Z = pp->posZget();
|
||||
pp->posprevZset(pp->posZget());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue