From 09e1fa4d1ebb37a15e13817f08ecc1cd8c654e2a Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 4 Jan 2022 22:54:51 +1100 Subject: [PATCH] - Exhumed: Amend previous commit to do proper floating point calculation. --- wadsrc/static/zscript/games/exhumed/ui/menu.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/games/exhumed/ui/menu.zs b/wadsrc/static/zscript/games/exhumed/ui/menu.zs index e305c48b7..b3052df07 100644 --- a/wadsrc/static/zscript/games/exhumed/ui/menu.zs +++ b/wadsrc/static/zscript/games/exhumed/ui/menu.zs @@ -101,7 +101,7 @@ class ListMenuItemExhumedTextItem : ListMenuItemTextItem if (delegate && (delegate.zoomsize < 1. || delegate.lastzoomsize < 1.)) { zoom = delegate.zoomsize; - double ticms = 1000 / GameTicRate; + double ticms = 1000. / GameTicRate; let span = clamp(now - delegate.zoomtime, 0, ticms); zoom -= 0.0625 * (1. - (span / ticms)); }