- Exhumed: Remove debug line and use game's ticrate in milliseconds instead of a hard-coded value (not that it should ever change anyway).

This commit is contained in:
Mitchell Richters 2022-01-04 22:51:19 +11:00
parent 6414a4ce78
commit 572dcc08dd

View file

@ -101,16 +101,14 @@ 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.));
double ticms = 1000 / GameTicRate;
let span = clamp(now - delegate.zoomtime, 0, ticms);
zoom -= 0.0625 * (1. - (span / ticms));
}
Console.Printf("zoom = %f, now = %d", zoom, now);
let v = TexMan.GetScaledSize(tex);
double y = mYpos + v.y / 2;
int shade;
if (selected) shade = Raze.bsin(now * 16 * 120 / 1000, -9);
else if (Selectable()) shade = 0;