]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
sv_user: Rename SV_ClientThink to SV_PlayerPhysics to clarify its purpose
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 5 Oct 2020 18:03:42 +0000 (18:03 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 5 Oct 2020 18:03:42 +0000 (18:03 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12991 d7cf8633-e32d-0410-b094-e92efae38249

server.h
sv_phys.c
sv_user.c

index f494a632189f2292dbfdd5eff451ee9bbae1dd39..4f643c8250c1733ed17a334034e3958771bed3e6 100644 (file)
--- 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);
index 131eda9fe5235a522f407b456461eff55e267fcc..a72a7ca6acf5b8a0142c5df48bc506834fb4635c 100644 (file)
--- 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);
        }
 
index 16abf771dd4374f45c4721226995aa920cf12186..be54fd3c3d8f3183d827b14313520e9f80501e1f 100644 (file)
--- 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;