reset camera.subsector for MAXSPLITSCREENPLAYERS

This commit is contained in:
Alug 2024-12-02 14:37:22 +01:00
parent e391967fc6
commit de1c2cee0d

View file

@ -1359,10 +1359,13 @@ static void CL_ReloadReceivedSavegame(void)
neededtic = gametic;
maketic = neededtic;
// we dont have P_ForceLocalAngle so were setting it manually here
for (i = 0; i <= splitscreen; i++)
{
localangle[i] = (angle_t)(players[displayplayers[i]].cmd.angleturn<<16);
localangle[i] = (angle_t)(players[displayplayers[i]].cmd.angleturn << 16); //P_ForceLocalAngle(&players[displayplayers[i]], players[displayplayers[i]].angleturn << 16);
}
for (i = 0; i < MAXSPLITSCREENPLAYERS; i++)
{
camera[i].subsector = R_PointInSubsector(camera[i].x, camera[i].y);
}