mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-21 19:51:27 +00:00
- fixed mouse coordinate checks for Strife conversations
ypositions needs one entry per response, not one per line.
This commit is contained in:
parent
2c75e2cac9
commit
9963b5a57f
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue