mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-24 17:52:29 +00:00
- Exhumed: Amend previous commit to do proper floating point calculation.
This commit is contained in:
parent
572dcc08dd
commit
09e1fa4d1e
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue