]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_phys.c
implemented sv_gameplayfix_qwplayerphysics
[xonotic/darkplaces.git] / sv_phys.c
index 2355d16b7764716ebcee306df6993b647a2954f4..1f50232b80fda0ded1f1d8187be882de6619070c 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -526,6 +526,10 @@ int SV_FlyMove (prvm_edict_t *ent, float time, float *stepnormal)
                trace = SV_Move(ent->fields.server->origin, ent->fields.server->mins, ent->fields.server->maxs, end, MOVE_NORMAL, ent);
        }
        */
+
+       // LordHavoc: this came from QW and allows you to get out of water more easily
+       if (sv_gameplayfix_qwplayerphysics.integer && ((int)ent->fields.server->flags & FL_WATERJUMP))
+               VectorCopy(primal_velocity, ent->fields.server->velocity);
        return blocked;
 }