Fix camera tilting in podium

This commit is contained in:
Sally Coolatta 2023-03-01 22:24:42 -05:00
parent 2d84837e5b
commit dddc992e24
2 changed files with 22 additions and 5 deletions

View file

@ -795,10 +795,12 @@ void P_Ticker(boolean run)
}
}
K_UpdateDirector();
// Always move the camera.
P_RunChaseCameras();
if (gamestate == GS_LEVEL)
{
// Move the camera during levels.
K_UpdateDirector();
P_RunChaseCameras();
}
LUA_HOOK(PostThinkFrame);

View file

@ -928,7 +928,22 @@ void R_ApplyViewMorph(int s)
angle_t R_ViewRollAngle(const player_t *player)
{
angle_t roll = player->viewrollangle;
angle_t roll = 0;
if (gamestate != GS_LEVEL)
{
// FIXME: The way this is implemented is totally
// incompatible with cameras that aren't directly
// tied to the player. (podium, titlemap,
// MT_ALTVIEWMAN in general)
// All of these player variables should affect their
// camera_t in P_MoveChaseCamera, and then this
// just returns that variable instead.
return 0;
}
roll = player->viewrollangle;
if (cv_tilting.value)
{