Skip to content

Commit

Permalink
Fix curses build after ddnet merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Nov 5, 2023
1 parent d167c33 commit 363232c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/game/client/components/chillerbot/terminalui/menus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ void CTerminalUI::RenderPopup()
aExtraText[0] = '\0';
if(m_Popup == POPUP_DISCONNECTED)
{
if(Client()->m_ReconnectTime > 0)
if(Client()->ReconnectTime() > 0)
{
int ReconnectSecs = (int)((Client()->m_ReconnectTime - time_get()) / time_freq());
int ReconnectSecs = (int)((Client()->ReconnectTime() - time_get()) / time_freq());
str_format(aExtraText, sizeof(aExtraText), Localize("Reconnect in %d sec"), ReconnectSecs);
str_copy(m_aPopupTitle, Client()->ErrorString(), sizeof(m_aPopupTitle));
// pButtonText = Localize("Abort");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1160,8 +1160,8 @@ int CTerminalUI::OnKeyPress(int Key, WINDOW *pWin)
if(m_Popup == POPUP_MESSAGE || m_Popup == POPUP_DISCONNECTED || m_Popup == POPUP_NOT_IMPORTANT)
{
// click "[ OK ]" on popups using enter
if(m_Popup == POPUP_DISCONNECTED && Client()->m_ReconnectTime > 0)
Client()->m_ReconnectTime = 0;
if(m_Popup == POPUP_DISCONNECTED && Client()->ReconnectTime() > 0)
Client()->SetReconnectTime(0);
m_Popup = POPUP_NONE;
gs_NeedLogDraw = true;
m_NewInput = true;
Expand Down

0 comments on commit 363232c

Please sign in to comment.