- fixed core script warnings with developer CVAR set to 2 or greater

Script warning, "gzdoom.pk3:zscript/ui/menu/conversationmenu.zs" line 159:
Truncation of floating point value
Script warning, "gzdoom.pk3:zscript/ui/menu/conversationmenu.zs" line 161:
Truncation of floating point value
This commit is contained in:
alexey.lysiuk 2019-08-13 14:48:40 +03:00
parent 6cce1f1e52
commit 1bd249677b

View file

@ -155,10 +155,9 @@ class ConversationMenu : Menu
}
else
{
let formatWidth = Screen.GetHeight() * 1.3333;
SpeechWidth = formatWidth / fontScale - (24*3 * CleanXfac / fontScale);
speechDisplayWidth = int(Screen.GetHeight() * 1.3333 / fontScale);
SpeechWidth = speechDisplayWidth - (24*3 * CleanXfac / fontScale);
mConfineTextToBackdrop = true;
speechDisplayWidth = formatWidth / fontScale;
}
LineHeight = displayFont.GetHeight() + 2;