]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fix incorrect types causing fp precision errors with movable brush entities, etc
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 May 2020 16:12:30 +0000 (16:12 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 May 2020 16:12:30 +0000 (16:12 +0000)
float -> double. This fixes an odd bug where some func_buttons would get stuck
after blocking them long enough.

Thanks to Mario (Xonotic) for finding this.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12601 d7cf8633-e32d-0410-b094-e92efae38249

sv_phys.c

index 6d14da1deeb827a35dc18648b0716e0f311223d2..9964c362f0d0dada04d617f81ed434641eea31eb 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -1983,7 +1983,7 @@ SV_Physics_Pusher
 static void SV_Physics_Pusher (prvm_edict_t *ent)
 {
        prvm_prog_t *prog = SVVM_prog;
-       float thinktime, oldltime, movetime;
+       double thinktime, oldltime, movetime;
 
        oldltime = PRVM_serveredictfloat(ent, ltime);