mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- 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:
parent
6414a4ce78
commit
572dcc08dd
1 changed files with 4 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue