mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix camera tilting in podium
This commit is contained in:
parent
2d84837e5b
commit
dddc992e24
2 changed files with 22 additions and 5 deletions
10
src/p_tick.c
10
src/p_tick.c
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
17
src/r_main.c
17
src/r_main.c
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue