mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 12:30:40 +00:00
- SW: Remove PLAYER::posAdd()
.
This commit is contained in:
parent
7eba7aacbd
commit
be06582062
5 changed files with 4 additions and 8 deletions
|
@ -1891,10 +1891,6 @@ struct PLAYER
|
|||
}
|
||||
|
||||
|
||||
void posAdd(const DVector2& val)
|
||||
{
|
||||
actor->spr.pos += val;
|
||||
}
|
||||
DVector3 posGet()
|
||||
{
|
||||
return actor->spr.pos.plusZ(actor->viewzoffset);
|
||||
|
|
|
@ -207,7 +207,7 @@ int RectClipMove(PLAYER* pp, DVector2* qpos)
|
|||
//Given the 4 points: x[4], y[4]
|
||||
if (testquadinsect(&point_num, xy, pp->cursector))
|
||||
{
|
||||
pp->posAdd(pvect);
|
||||
pp->actor->spr.pos.XY() += pvect;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -2136,7 +2136,7 @@ void DoPlayerMove(PLAYER* pp)
|
|||
{
|
||||
actor->backupvec2();
|
||||
}
|
||||
pp->posAdd(pp->vect);
|
||||
actor->spr.pos.XY() += pp->vect;
|
||||
updatesector(pp->posGet(), §);
|
||||
if (sect != nullptr)
|
||||
pp->cursector = sect;
|
||||
|
|
|
@ -1543,7 +1543,7 @@ void PreMapCombineFloors(void)
|
|||
{
|
||||
if (itsect == dasect)
|
||||
{
|
||||
pp->posAdd(dv);
|
||||
pp->actor->spr.pos.XY() += dv;
|
||||
pp->posoldXY() = pp->actor->spr.pos.XY();
|
||||
pp->actor->backupvec2();
|
||||
break;
|
||||
|
|
|
@ -1487,7 +1487,7 @@ void MovePlayer(PLAYER* pp, SECTOR_OBJECT* sop, const DVector2& move)
|
|||
pp->RevolveDeltaAng = nullAngle;
|
||||
}
|
||||
|
||||
pp->posAdd(move);
|
||||
pp->actor->spr.pos.XY() += move;
|
||||
|
||||
if ((sop->flags & SOBJ_DONT_ROTATE))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue