mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed jittering of character on round end
This commit is contained in:
parent
b36dee3ec0
commit
9a8c0809c7
|
@ -1296,10 +1296,16 @@ static void render_player(
|
||||||
|
|
||||||
if(info.local && config.cl_predict)
|
if(info.local && config.cl_predict)
|
||||||
{
|
{
|
||||||
// apply predicted results
|
if(!local_character || (local_character->health < 0) || (gameobj && gameobj->game_over))
|
||||||
predicted_player.write(&player);
|
{
|
||||||
predicted_prev_player.write(&prev);
|
}
|
||||||
intratick = client_intrapredtick();
|
else
|
||||||
|
{
|
||||||
|
// apply predicted results
|
||||||
|
predicted_player.write(&player);
|
||||||
|
predicted_prev_player.write(&prev);
|
||||||
|
intratick = client_intrapredtick();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: proper skin selection
|
// TODO: proper skin selection
|
||||||
|
|
Loading…
Reference in a new issue