Skip to content
Permalink
Browse files

- 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
  • Loading branch information...
alexey-lysiuk committed Aug 13, 2019
1 parent 6cce1f1 commit 1bd249677b39ae80ce4658ce23c22bd7b26d69da
Showing with 2 additions and 3 deletions.
  1. +2 −3 wadsrc/static/zscript/ui/menu/conversationmenu.zs
@@ -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;

0 comments on commit 1bd2496

Please sign in to comment.
You can’t perform that action at this time.