]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fix CTF flags getting stuck on slopes instead of sliding down Mario/flag_slide_fix
authorMario <zacjardine@y7mail.com>
Fri, 20 Feb 2015 03:20:32 +0000 (14:20 +1100)
committerMario <zacjardine@y7mail.com>
Fri, 20 Feb 2015 03:20:32 +0000 (14:20 +1100)
sv_phys.c

index c84f0c159650a1ceda860bd51858df958a3fc8cb..b8dd3b733150e80e3c26182b9b3f3f6c10682c7f 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -2716,7 +2716,8 @@ void SV_Physics_Toss (prvm_edict_t *ent)
                        }
                        else
                                PRVM_serveredictfloat(ent, flags) = (int)PRVM_serveredictfloat(ent, flags) & ~FL_ONGROUND;
-                       movetime = 0;
+                       if (!sv_gameplayfix_slidemoveprojectiles.integer)
+                               movetime = 0;
                        break;
                }
        }