mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 06:41:41 +00:00
- 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:
parent
6cce1f1e52
commit
1bd249677b
1 changed files with 2 additions and 3 deletions
|
@ -155,10 +155,9 @@ class ConversationMenu : Menu
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
let formatWidth = Screen.GetHeight() * 1.3333;
|
speechDisplayWidth = int(Screen.GetHeight() * 1.3333 / fontScale);
|
||||||
SpeechWidth = formatWidth / fontScale - (24*3 * CleanXfac / fontScale);
|
SpeechWidth = speechDisplayWidth - (24*3 * CleanXfac / fontScale);
|
||||||
mConfineTextToBackdrop = true;
|
mConfineTextToBackdrop = true;
|
||||||
speechDisplayWidth = formatWidth / fontScale;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LineHeight = displayFont.GetHeight() + 2;
|
LineHeight = displayFont.GetHeight() + 2;
|
||||||
|
|
Loading…
Reference in a new issue