mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
don't bother predicting if disconnected (forward port of Dabb's work)
This commit is contained in:
parent
65e5a7a4fc
commit
1a27ded797
1 changed files with 10 additions and 9 deletions
|
@ -1449,20 +1449,21 @@ Host_Frame (float time)
|
||||||
// resend a connection request if necessary
|
// resend a connection request if necessary
|
||||||
if (cls.state == ca_disconnected) {
|
if (cls.state == ca_disconnected) {
|
||||||
CL_CheckForResend ();
|
CL_CheckForResend ();
|
||||||
} else
|
} else {
|
||||||
CL_SendCmd ();
|
CL_SendCmd ();
|
||||||
|
|
||||||
// Set up prediction for other players
|
// Set up prediction for other players
|
||||||
CL_SetUpPlayerPrediction (false);
|
CL_SetUpPlayerPrediction (false);
|
||||||
|
|
||||||
// do client side motion prediction
|
// do client side motion prediction
|
||||||
CL_PredictMove ();
|
CL_PredictMove ();
|
||||||
|
|
||||||
// Set up prediction for other players
|
// Set up prediction for other players
|
||||||
CL_SetUpPlayerPrediction (true);
|
CL_SetUpPlayerPrediction (true);
|
||||||
|
|
||||||
// build a refresh entity list
|
// build a refresh entity list
|
||||||
CL_EmitEntities ();
|
CL_EmitEntities ();
|
||||||
|
}
|
||||||
|
|
||||||
// update video
|
// update video
|
||||||
if (host_speeds->int_val)
|
if (host_speeds->int_val)
|
||||||
|
|
Loading…
Reference in a new issue