mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 12:50:44 +00:00
Only do view interpolation hack if renderer exists
This commit is contained in:
parent
de51d065b0
commit
17bde07bda
1 changed files with 10 additions and 6 deletions
|
@ -25,6 +25,7 @@
|
||||||
#include "k_kart.h"
|
#include "k_kart.h"
|
||||||
#include "r_main.h"
|
#include "r_main.h"
|
||||||
#include "r_fps.h"
|
#include "r_fps.h"
|
||||||
|
#include "i_video.h" // rendermode
|
||||||
|
|
||||||
// Object place
|
// Object place
|
||||||
#include "m_cheat.h"
|
#include "m_cheat.h"
|
||||||
|
@ -818,6 +819,8 @@ void P_Ticker(boolean run)
|
||||||
// Hack: ensure newview is assigned every tic.
|
// Hack: ensure newview is assigned every tic.
|
||||||
// Ensures view interpolation is T-1 to T in poor network conditions
|
// 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
|
// We need a better way to assign view state decoupled from game logic
|
||||||
|
if (rendermode != render_none)
|
||||||
|
{
|
||||||
for (i = 0; i <= splitscreen; i++)
|
for (i = 0; i <= splitscreen; i++)
|
||||||
{
|
{
|
||||||
player_t *player = &players[displayplayers[i]];
|
player_t *player = &players[displayplayers[i]];
|
||||||
|
@ -829,6 +832,7 @@ void P_Ticker(boolean run)
|
||||||
R_SetupFrame(player, (skyboxmo[0] && cv_skybox.value));
|
R_SetupFrame(player, (skyboxmo[0] && cv_skybox.value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
P_MapEnd();
|
P_MapEnd();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue