]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_phys.c
1. network sv_gameplayfix_gravityunaffectedbyticrate to the client, and predict properly
[xonotic/darkplaces.git] / sv_phys.c
index d7ae93f4daf8d6f73d6d7259d6a427764993384a..7863325352bb26b74021443293213d284c7e6e5e 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -1230,6 +1230,11 @@ static int SV_FlyMove (prvm_edict_t *ent, float time, qboolean applygravity, flo
        if (time <= 0)
                return 0;
        gravity = 0;
+
+       if(sv_gameplayfix_nogravityonground.integer)
+               if((int)ent->fields.server->flags & FL_ONGROUND)
+                       applygravity = false;
+
        if (applygravity)
        {
                if (sv_gameplayfix_gravityunaffectedbyticrate.integer)