mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- Duke: Wrap calls that add to player_struct::PlayerOldPosition
.
This commit is contained in:
parent
e4dd69f5b0
commit
fffc1915a9
2 changed files with 6 additions and 1 deletions
|
@ -3049,7 +3049,7 @@ void handle_se17(DDukeActor* actor)
|
|||
ps[p].PlayerOldPosition -= ps[p].posGet();
|
||||
ps[p].posXY() += act2->spr.pos.XY() - actor->spr.pos.XY();
|
||||
ps[p].posZadd(act2->sector()->floorz - sc->floorz);
|
||||
ps[p].PlayerOldPosition += ps[p].posGet();
|
||||
ps[p].posoldAdd(ps[p].posGet());
|
||||
|
||||
if (q > 0) ps[p].backupz();
|
||||
|
||||
|
|
|
@ -422,6 +422,11 @@ struct player_struct
|
|||
{
|
||||
return PlayerOldPosition.Z;
|
||||
}
|
||||
|
||||
void posoldAdd(const DVector3& val)
|
||||
{
|
||||
PlayerOldPosition += val;
|
||||
}
|
||||
};
|
||||
|
||||
struct Cycler
|
||||
|
|
Loading…
Reference in a new issue