From 80121f602172851e3386300387e31b0a1cf405ce Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 10 Sep 2022 21:50:17 +1000 Subject: [PATCH] - Blood: Eliminate `VIEW::angle`. --- source/games/blood/src/osdcmd.cpp | 1 - source/games/blood/src/view.cpp | 1 - source/games/blood/src/view.h | 1 - 3 files changed, 3 deletions(-) diff --git a/source/games/blood/src/osdcmd.cpp b/source/games/blood/src/osdcmd.cpp index 62e544632..17ad1a685 100644 --- a/source/games/blood/src/osdcmd.cpp +++ b/source/games/blood/src/osdcmd.cpp @@ -44,7 +44,6 @@ void GameInterface::WarpToCoords(double x, double y, double z, DAngle ang, int h if (ang != DAngle::fromDeg(INT_MIN)) { pPlayer->angle.oang = pPlayer->angle.ang = gView->angle.ang = ang; - pView->angle = ang; } if (horz != INT_MIN) diff --git a/source/games/blood/src/view.cpp b/source/games/blood/src/view.cpp index bc367471c..87c873b0f 100644 --- a/source/games/blood/src/view.cpp +++ b/source/games/blood/src/view.cpp @@ -61,7 +61,6 @@ void viewBackupView(int nPlayer) { PLAYER* pPlayer = &gPlayer[nPlayer]; VIEW* pView = &gPrevView[nPlayer]; - pView->angle = pPlayer->angle.ang; pView->pos.XY() = pPlayer->actor->spr.pos.XY(); pView->viewz = pPlayer->zView; pView->weaponZ = pPlayer->zWeapon - pPlayer->zView - 0xc00; diff --git a/source/games/blood/src/view.h b/source/games/blood/src/view.h index 193e00eb0..12f9e3bb6 100644 --- a/source/games/blood/src/view.h +++ b/source/games/blood/src/view.h @@ -43,7 +43,6 @@ struct VIEW { fixedhoriz horiz; // horiz fixedhoriz horizoff; // horizoff int slope; - DAngle angle; // angle int weaponZ; // weapon z int viewz; // view z int zViewVel;