]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - svvm_cmds.c
Use correct droptofloor distance for each Quake map format
[xonotic/darkplaces.git] / svvm_cmds.c
index 672ff70d1f8e7116237d6f81737fe2b8012a014b..a884d0f1b42c47393300edc8e88d21df774becb6 100644 (file)
@@ -1158,7 +1158,12 @@ static void VM_SV_droptofloor(prvm_prog_t *prog)
        }
 
        VectorCopy (PRVM_serveredictvector(ent, origin), end);
-       end[2] -= 256;
+       if (sv.worldmodel->brush.isq3bsp)
+               end[2] -= 4096;
+       else if (sv.worldmodel->brush.isq2bsp)
+               end[2] -= 128;
+       else
+               end[2] -= 256; // Quake, QuakeWorld
 
        if (sv_gameplayfix_droptofloorstartsolid_nudgetocorrect.integer)
                SV_NudgeOutOfSolid(ent);