diff --git a/wadsrc/static/zscript/ui/menu/loadsavemenu.zs b/wadsrc/static/zscript/ui/menu/loadsavemenu.zs index 786dfa6756..3fac8bf403 100644 --- a/wadsrc/static/zscript/ui/menu/loadsavemenu.zs +++ b/wadsrc/static/zscript/ui/menu/loadsavemenu.zs @@ -129,7 +129,7 @@ class LoadSaveMenu : ListMenu double wScale = Width43 / 640.; savepicLeft = Left43 + int(20 * wScale); - savepicTop = mDesc.mYpos * screen.GetHeight() / 200 ; + savepicTop = int(mDesc.mYpos * screen.GetHeight() / 200); savepicWidth = int(240 * wScale); savepicHeight = int(180 * wScale); diff --git a/wadsrc/static/zscript/ui/menu/messagebox.zs b/wadsrc/static/zscript/ui/menu/messagebox.zs index 3bae3c27a0..15403fd37d 100644 --- a/wadsrc/static/zscript/ui/menu/messagebox.zs +++ b/wadsrc/static/zscript/ui/menu/messagebox.zs @@ -89,7 +89,7 @@ class MessageBoxMenu : Menu int mr2 = destWidth/2 + 10 + textFont.StringWidth(Stringtable.Localize("$TXT_NO")); mMouseRight = MAX(mr1, mr2); mParentMenu = parent; - mMessage = textFont.BreakLines(Stringtable.Localize(message), 300/NotifyFontScale); + mMessage = textFont.BreakLines(Stringtable.Localize(message), int(300/NotifyFontScale)); mMessageMode = messagemode; if (playsound) { @@ -106,8 +106,9 @@ class MessageBoxMenu : Menu override void Drawer () { - int i, y; - int fontheight = textFont.GetHeight() * NotifyFontScale; + int i; + double y; + let fontheight = textFont.GetHeight() * NotifyFontScale; y = destHeight / 2;