- Blood: Eliminate VIEW::horiz and VIEW::horizoff.

This commit is contained in:
Mitchell Richters 2022-09-10 22:22:22 +10:00 committed by Christoph Oelckers
parent 5b962e69ab
commit 326da6d495
3 changed files with 2 additions and 7 deletions

View file

@ -34,19 +34,18 @@ BEGIN_BLD_NS
void GameInterface::WarpToCoords(double x, double y, double z, DAngle ang, int horz)
{
PLAYER* pPlayer = &gPlayer[myconnectindex];
VIEW* pView = &gPrevView[myconnectindex];
pPlayer->actor->opos.XY() = pPlayer->actor->spr.pos.XY() = { x , y };
pPlayer->ozView = pPlayer->zView = z;
if (ang != DAngle::fromDeg(INT_MIN))
{
pPlayer->angle.oang = pPlayer->angle.ang = gView->angle.ang = ang;
pPlayer->angle.oang = pPlayer->angle.ang = ang;
}
if (horz != INT_MIN)
{
pPlayer->horizon.ohoriz = pPlayer->horizon.horiz = pView->horiz = gView->horizon.horiz = buildhoriz(horz);
pPlayer->horizon.ohoriz = pPlayer->horizon.horiz = buildhoriz(horz);
}
}

View file

@ -63,8 +63,6 @@ void viewBackupView(int nPlayer)
VIEW* pView = &gPrevView[nPlayer];
pPlayer->ozView = pPlayer->zView;
pPlayer->ozWeapon = pPlayer->zWeapon - pPlayer->zView - 0xc00;
pView->horiz = pPlayer->horizon.horiz;
pView->horizoff = pPlayer->horizon.horizoff;
pView->slope = pPlayer->slope;
pView->bobHeight = pPlayer->bobHeight;
pView->bobWidth = pPlayer->bobWidth;

View file

@ -40,8 +40,6 @@ struct VIEW {
int swayAmp;
int shakeBobY; // bob sway y
int shakeBobX; // bob sway x
fixedhoriz horiz; // horiz
fixedhoriz horizoff; // horizoff
int slope;
int zViewVel;
int zWeapon;