mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-07 20:01:21 +00:00
Force camera defaults during tutorialmode (doesn't work in all cases)
This commit is contained in:
parent
d406809ee8
commit
722929a661
1 changed files with 12 additions and 1 deletions
13
src/p_user.c
13
src/p_user.c
|
|
@ -8848,7 +8848,18 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
if (P_CameraThinker(player, thiscam, resetcalled))
|
||||
return true;
|
||||
|
||||
if (thiscam == &camera)
|
||||
if (tutorialmode)
|
||||
{
|
||||
// force defaults because we have a camera look section
|
||||
// \todo would be nice to use cv_cam_*.defaultvalue directly, but string parsing
|
||||
// is not separated from cv setting (see command.c Setvalue, CV_SetCVar)
|
||||
camspeed = 0.3;
|
||||
camstill = false;
|
||||
camrotate = 0;
|
||||
camdist = 160;
|
||||
camheight = 25;
|
||||
}
|
||||
else if (thiscam == &camera)
|
||||
{
|
||||
camspeed = cv_cam_speed.value;
|
||||
camstill = cv_cam_still.value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue