mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- Ensure all games consistently scale out for chase cam mode.
This commit is contained in:
parent
f776489f06
commit
c9e33b92cc
3 changed files with 7 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -107,6 +107,7 @@ void GameInterface::ToggleThirdPerson()
|
|||
{
|
||||
pp->Flags |= (PF_VIEW_FROM_OUTSIDE);
|
||||
cameradist = 0;
|
||||
cameraclock = INT_MIN;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue