mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
Silenced scripting warning from main .pk3
Script warning, "gzdoom.pk3:zscript/menu/playercontrols.txt" line 526: Truncation of floating point value
This commit is contained in:
parent
1cb3514b05
commit
a797db74da
1 changed files with 2 additions and 2 deletions
|
@ -523,8 +523,8 @@ class ListMenuItemSlider : ListMenuItemSelectable
|
|||
|
||||
double x = SmallFont.StringWidth ("Green") + 8 + mXpos;
|
||||
double x2 = SmallFont.StringWidth (text) + 8 + mXpos;
|
||||
mDrawX = MAX(x2, x);
|
||||
mDrawX = int(MAX(x2, x));
|
||||
|
||||
DrawSlider (mDrawX, mYpos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue