don't bother predicting if disconnected (forward port of Dabb's work)

This commit is contained in:
Bill Currie 2001-09-11 04:53:20 +00:00
parent 65e5a7a4fc
commit 1a27ded797

View file

@ -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)