Replace POPUP_PURE with generic PopupMessage

This commit is contained in:
Robert Müller 2022-08-21 13:25:06 +02:00
parent ead708e35d
commit d3c9311156
2 changed files with 1 additions and 9 deletions

View file

@ -1510,13 +1510,6 @@ int CMenus::Render()
}
ExtraAlign = 0;
}
else if(m_Popup == POPUP_PURE)
{
pTitle = Localize("Disconnected");
pExtraText = Localize("The server is running a non-standard tuning on a pure game type.");
pButtonText = Localize("Ok");
ExtraAlign = -1;
}
else if(m_Popup == POPUP_DELETE_DEMO)
{
pTitle = Localize("Delete demo");
@ -2528,7 +2521,7 @@ void CMenus::OnRender()
{
Client()->Disconnect();
SetActive(true);
m_Popup = POPUP_PURE;
PopupMessage(Localize("Disconnected"), Localize("The server is running a non-standard tuning on a pure game type."), Localize("Ok"));
}
if(!IsActive())

View file

@ -684,7 +684,6 @@ public:
POPUP_CONNECTING,
POPUP_MESSAGE,
POPUP_DISCONNECTED,
POPUP_PURE,
POPUP_LANGUAGE,
POPUP_COUNTRY,
POPUP_DELETE_DEMO,