Fix crash when spawning a BOT_2PAI on a 2D map

This commit is contained in:
Gustaf Alhäll 2024-12-01 16:19:13 +01:00
parent c4dbf42ded
commit e7e7a5c472

View file

@ -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);
}
} }
} }