if (!svs.clients[num-1].active)
return; // unconnected slot
+ SV_CheckVelocity (ent);
+
// call standard client pre-think
pr_global_struct->time = sv.time;
pr_global_struct->self = EDICT_TO_PROG(ent);
Host_Error ("SV_Physics_client: bad movetype %i", (int)ent->v->movetype);
}
+ SV_CheckVelocity (ent);
+
// call standard player post-think
SV_LinkEdict (ent, true);
+ SV_CheckVelocity (ent);
+
pr_global_struct->time = sv.time;
pr_global_struct->self = EDICT_TO_PROG(ent);
PR_ExecuteProgram (pr_global_struct->PlayerPostThink, "QC function PlayerPostThink is missing");
}
else
SV_ClientThink ();
+
+ SV_CheckVelocity (sv_player);
+
+ // LordHavoc: a hack to ensure that the (rather silly) id1 quakec
+ // player_run/player_stand1 does not horribly malfunction if the
+ // velocity becomes a number that is both == 0 and != 0
+ // (sounds to me like NaN but to be absolutely safe...)
+ if (DotProduct(sv_player->v->velocity, sv_player->v->velocity) < 0.0001)
+ VectorClear(sv_player->v->velocity);
}
}
}