mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'viewpointthirdpersonfix' into 'master'
Fix to possible crash in R_IsViewpointThirdPerson See merge request KartKrew/RingRacers!105
This commit is contained in:
commit
3e6e24fac8
1 changed files with 7 additions and 1 deletions
|
|
@ -1430,7 +1430,13 @@ boolean R_ViewpointHasChasecam(player_t *player)
|
||||||
|
|
||||||
boolean R_IsViewpointThirdPerson(player_t *player, boolean skybox)
|
boolean R_IsViewpointThirdPerson(player_t *player, boolean skybox)
|
||||||
{
|
{
|
||||||
boolean chasecam = R_ViewpointHasChasecam(player);
|
boolean chasecam = false;
|
||||||
|
|
||||||
|
// Prevent game crash if player is ever invalid.
|
||||||
|
if (!player)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
chasecam = R_ViewpointHasChasecam(player);
|
||||||
|
|
||||||
// cut-away view stuff
|
// cut-away view stuff
|
||||||
if (player->awayview.tics || skybox)
|
if (player->awayview.tics || skybox)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue