From 9963b5a57ff07f15a6dd4bb1fdf586cd02ee9a30 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 9 May 2022 00:11:53 +0200 Subject: [PATCH] - fixed mouse coordinate checks for Strife conversations ypositions needs one entry per response, not one per line. --- wadsrc/static/zscript/ui/menu/conversationmenu.zs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/ui/menu/conversationmenu.zs b/wadsrc/static/zscript/ui/menu/conversationmenu.zs index a849269bc..1b1d3c011 100644 --- a/wadsrc/static/zscript/ui/menu/conversationmenu.zs +++ b/wadsrc/static/zscript/ui/menu/conversationmenu.zs @@ -497,14 +497,13 @@ class ConversationMenu : Menu double sx = (x - 160.0) * CleanXfac + (screen.GetWidth() * 0.5); double sy = (y - 100.0) * CleanYfac + (screen.GetHeight() * 0.5); - ypositions.Push(sy); - screen.DrawText(displayFont, Font.CR_GREEN, sx / fontScale, sy / fontScale, mResponseLines[i], DTA_KeepRatio, true, DTA_VirtualWidth, displayWidth, DTA_VirtualHeight, displayHeight); if (i == mResponses[response]) { String tbuf; + ypositions.Push(sy); response++; tbuf = String.Format("%d.", response); x = 50 - displayFont.StringWidth(tbuf);