From d3c93111560a52a0dbf7930e6760787cdee76aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Sun, 21 Aug 2022 13:25:06 +0200 Subject: [PATCH] Replace `POPUP_PURE` with generic `PopupMessage` --- src/game/client/components/menus.cpp | 9 +-------- src/game/client/components/menus.h | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 4e28328bd..6d18c16d1 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -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()) diff --git a/src/game/client/components/menus.h b/src/game/client/components/menus.h index 38d0eac7a..7536785f3 100644 --- a/src/game/client/components/menus.h +++ b/src/game/client/components/menus.h @@ -684,7 +684,6 @@ public: POPUP_CONNECTING, POPUP_MESSAGE, POPUP_DISCONNECTED, - POPUP_PURE, POPUP_LANGUAGE, POPUP_COUNTRY, POPUP_DELETE_DEMO,