mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-09 09:41:12 +00:00
Fix crash when spawning a BOT_2PAI on a 2D map
This commit is contained in:
parent
c4dbf42ded
commit
e7e7a5c472
1 changed files with 12 additions and 12 deletions
|
@ -7645,20 +7645,20 @@ static void P_InitCamera(void)
|
||||||
CV_SetValue(&cv_analog[1], 0);
|
CV_SetValue(&cv_analog[1], 0);
|
||||||
|
|
||||||
displayplayer = consoleplayer; // Start with your OWN view, please!
|
displayplayer = consoleplayer; // Start with your OWN view, please!
|
||||||
}
|
|
||||||
|
|
||||||
if (twodlevel)
|
if (twodlevel)
|
||||||
{
|
{
|
||||||
CV_SetValue(&cv_analog[0], false);
|
CV_SetValue(&cv_analog[0], false);
|
||||||
CV_SetValue(&cv_analog[1], false);
|
CV_SetValue(&cv_analog[1], false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (cv_useranalog[0].value)
|
if (cv_useranalog[0].value)
|
||||||
CV_SetValue(&cv_analog[0], true);
|
CV_SetValue(&cv_analog[0], true);
|
||||||
|
|
||||||
if ((splitscreen && cv_useranalog[1].value) || botingame)
|
if ((splitscreen && cv_useranalog[1].value) || botingame)
|
||||||
CV_SetValue(&cv_analog[1], true);
|
CV_SetValue(&cv_analog[1], true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue