From: cloudwalk Date: Wed, 27 May 2020 16:12:30 +0000 (+0000) Subject: Fix incorrect types causing fp precision errors with movable brush entities, etc X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=89a00e89d63cfb3b4f632315b0b8d96b30b52c5c;p=xonotic%2Fdarkplaces.git 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 --- 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);