From 89a00e89d63cfb3b4f632315b0b8d96b30b52c5c Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Wed, 27 May 2020 16:12:30 +0000 Subject: [PATCH] Fix incorrect types causing fp precision errors with movable brush entities, etc 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sv_phys.c b/sv_phys.c index 6d14da1d..9964c362 100644 --- 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); -- 2.39.2