Skip to content

Commit

Permalink
Fixed a bug that vote menu's position went wrong. (CaptionMod)
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Sep 21, 2022
1 parent 2956e4b commit 951fdb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plugins/CaptionMod/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ int CHudMenu::Draw(void)
ScreenWidth = si.iWidth;
ScreenHeight = si.iHeight;

int y = (ScreenHeight / 2) - ((nlc / 2) * 12) - 40;
int y = (ScreenHeight / 2) - ((nlc / 2) * m_iFontEngineHeight + 40);
const char *sptr = m_szMenuString;
int i;
char menubuf[80];
Expand Down Expand Up @@ -2140,7 +2140,7 @@ int CHudMenu::Draw(void)
{
menu_ralign = 0;
menu_x = 20;
y += m_iFontEngineHeight + 2;
y += m_iFontEngineHeight;
sptr += 1;
continue;
}
Expand Down

0 comments on commit 951fdb3

Please sign in to comment.