Skip to content

Commit

Permalink
- fixed core script warnings with developer CVAR set to 2 or greater
Browse files Browse the repository at this point in the history
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 1bd2496
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wadsrc/static/zscript/ui/menu/conversationmenu.zs
Expand Up @@ -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;
Expand Down

0 comments on commit 1bd2496

Please sign in to comment.