- Ensure all games consistently scale out for chase cam mode.

This commit is contained in:
Mitchell Richters 2022-09-07 22:02:15 +10:00 committed by Christoph Oelckers
parent f776489f06
commit c9e33b92cc
3 changed files with 7 additions and 2 deletions

View file

@ -58,9 +58,15 @@ void GameInterface::ToggleThirdPerson()
{
if (gamestate != GS_LEVEL) return;
if (gViewPos > VIEWPOS_0)
{
gViewPos = VIEWPOS_0;
}
else
{
gViewPos = VIEWPOS_1;
cameradist = 0;
cameraclock = INT_MIN;
}
}
void GameInterface::SwitchCoopView()

View file

@ -557,8 +557,6 @@ void SetupView(int& cX, int& cY, int& cZ, DAngle& cA, fixedhoriz& cH, sectortype
cZ += bobHeight;
}
cZ += int(cH.asq16() * (1. / 6553.6));
cameradist = -1;
cameraclock = PlayClock + MulScale(4, (int)gInterpolate, 16);
}
else
{

View file

@ -107,6 +107,7 @@ void GameInterface::ToggleThirdPerson()
{
pp->Flags |= (PF_VIEW_FROM_OUTSIDE);
cameradist = 0;
cameraclock = INT_MIN;
}
}