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
1 changed files with 10 additions and 9 deletions

View File

@ -1449,20 +1449,21 @@ Host_Frame (float time)
// resend a connection request if necessary
if (cls.state == ca_disconnected) {
CL_CheckForResend ();
} else
} else {
CL_SendCmd ();
// Set up prediction for other players
CL_SetUpPlayerPrediction (false);
// Set up prediction for other players
CL_SetUpPlayerPrediction (false);
// do client side motion prediction
CL_PredictMove ();
// do client side motion prediction
CL_PredictMove ();
// Set up prediction for other players
CL_SetUpPlayerPrediction (true);
// Set up prediction for other players
CL_SetUpPlayerPrediction (true);
// build a refresh entity list
CL_EmitEntities ();
// build a refresh entity list
CL_EmitEntities ();
}
// update video
if (host_speeds->int_val)