From: cloudwalk Date: Mon, 5 Oct 2020 18:03:42 +0000 (+0000) Subject: sv_user: Rename SV_ClientThink to SV_PlayerPhysics to clarify its purpose X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9a17acf75b06cd2d7c8d25f30afd2f8200fddfd7;p=xonotic%2Fdarkplaces.git sv_user: Rename SV_ClientThink to SV_PlayerPhysics to clarify its purpose git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12991 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/server.h b/server.h index f494a632..4f643c82 100644 --- a/server.h +++ b/server.h @@ -547,7 +547,7 @@ void SV_SetIdealPitch (void); void SV_AddUpdates (void); -void SV_ClientThink (void); +void SV_PlayerPhysics (void); void SV_ClientPrint(const char *msg); void SV_ClientPrintf(const char *fmt, ...) DP_FUNC_PRINTF(1); diff --git a/sv_phys.c b/sv_phys.c index 131eda9f..a72a7ca6 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -2965,7 +2965,7 @@ void SV_Physics_ClientMove(void) // call player physics, this needs the proper frametime PRVM_serverglobalfloat(frametime) = sv.frametime; - SV_ClientThink(); + SV_PlayerPhysics(); // call standard client pre-think, with frametime = 0 PRVM_serverglobalfloat(time) = sv.time; @@ -3013,7 +3013,7 @@ static void SV_Physics_ClientEntity_PreThink(prvm_edict_t *ent) // don't run physics here if running asynchronously if (host_client->clmovement_inputtimeout <= 0) { - SV_ClientThink(); + SV_PlayerPhysics(); //host_client->cmd.time = max(host_client->cmd.time, sv.time); } diff --git a/sv_user.c b/sv_user.c index 16abf771..be54fd3c 100644 --- a/sv_user.c +++ b/sv_user.c @@ -562,13 +562,13 @@ static void SV_AirMove (void) /* =================== -SV_ClientThink +SV_PlayerPhysics the move fields specify an intended velocity in pix/sec the angle fields specify an exact angular motion in degrees =================== */ -void SV_ClientThink (void) +void SV_PlayerPhysics (void) { prvm_prog_t *prog = SVVM_prog; vec3_t v_angle, angles, velocity; @@ -579,7 +579,7 @@ void SV_ClientThink (void) // make sure the velocity is sane (not a NaN) SV_CheckVelocity(host_client->edict); - // LadyHavoc: QuakeC replacement for SV_ClientThink (player movement) + // LadyHavoc: QuakeC replacement for SV_PlayerPhysics (player movement) if (PRVM_serverfunction(SV_PlayerPhysics) && sv_playerphysicsqc.integer) { PRVM_serverglobalfloat(time) = sv.time;