mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Newview hack crash fixes
- Renderer should exist - Player mo should exist
This commit is contained in:
parent
0230b57aa8
commit
ea0bf216c5
1 changed files with 11 additions and 6 deletions
17
src/p_tick.c
17
src/p_tick.c
|
|
@ -787,15 +787,20 @@ void P_Ticker(boolean run)
|
|||
// Hack: ensure newview is assigned every tic.
|
||||
// Ensures view interpolation is T-1 to T in poor network conditions
|
||||
// We need a better way to assign view state decoupled from game logic
|
||||
for (i = 0; i <= r_splitscreen; i++)
|
||||
if (rendermode != render_none)
|
||||
{
|
||||
player_t *player = &players[displayplayers[i]];
|
||||
const boolean skybox = (player->skybox.viewpoint && cv_skybox.value); // True if there's a skybox object and skyboxes are on
|
||||
if (skybox)
|
||||
for (i = 0; i <= r_splitscreen; i++)
|
||||
{
|
||||
R_SkyboxFrame(i);
|
||||
player_t *player = &players[displayplayers[i]];
|
||||
if (!player->mo)
|
||||
continue;
|
||||
const boolean skybox = (player->skybox.viewpoint && cv_skybox.value); // True if there's a skybox object and skyboxes are on
|
||||
if (skybox)
|
||||
{
|
||||
R_SkyboxFrame(i);
|
||||
}
|
||||
R_SetupFrame(i);
|
||||
}
|
||||
R_SetupFrame(i);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue