From 572dcc08ddb651c18a666f89ac8fb05479817a9e Mon Sep 17 00:00:00 2001
From: Mitchell Richters <mjr4077au@gmail.com>
Date: Tue, 4 Jan 2022 22:51:19 +1100
Subject: [PATCH] - Exhumed: Remove debug line and use game's ticrate in
 milliseconds instead of a hard-coded value (not that it should ever change
 anyway).

---
 wadsrc/static/zscript/games/exhumed/ui/menu.zs | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/wadsrc/static/zscript/games/exhumed/ui/menu.zs b/wadsrc/static/zscript/games/exhumed/ui/menu.zs
index 585f7091f..e305c48b7 100644
--- a/wadsrc/static/zscript/games/exhumed/ui/menu.zs
+++ b/wadsrc/static/zscript/games/exhumed/ui/menu.zs
@@ -101,15 +101,13 @@ class ListMenuItemExhumedTextItem : ListMenuItemTextItem
 		if (delegate && (delegate.zoomsize < 1. || delegate.lastzoomsize < 1.))
 		{
 			zoom = delegate.zoomsize;
-			let span = clamp(now - delegate.zoomtime, 0, 33);
-			zoom -= 0.0625 * (1. - (span / 33.));
-		}			
-		Console.Printf("zoom = %f, now = %d", zoom, now);
-
+			double ticms = 1000 / GameTicRate;
+			let span = clamp(now - delegate.zoomtime, 0, ticms);
+			zoom -= 0.0625 * (1. - (span / ticms));
+		}
 
 		let v = TexMan.GetScaledSize(tex);
 		double y = mYpos + v.y / 2;
-		
 
 		int shade;
 		if (selected) shade = Raze.bsin(now * 16 * 120 / 1000, -9);