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:
alexey.lysiuk 2017-06-04 16:21:10 +03:00
parent 1cb3514b05
commit a797db74da

View file

@ -523,7 +523,7 @@ 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);
}