From 7d5878891650c65408d51fc5d25f47b495626087 Mon Sep 17 00:00:00 2001 From: jeefo Date: Tue, 31 Jul 2018 02:03:04 +0300 Subject: [PATCH] Added as per #47 request However renamed CVAR to yb_display_welcome_text. --- source/support.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/support.cpp b/source/support.cpp index 7583b2a..2375c38 100644 --- a/source/support.cpp +++ b/source/support.cpp @@ -10,6 +10,7 @@ #include ConVar yb_display_menu_text ("yb_display_menu_text", "1"); +ConVar yb_display_welcome_text ("yb_display_welcome_text", "1"); ConVar mp_roundtime ("mp_roundtime", nullptr, VT_NOREGISTER); ConVar mp_freezetime ("mp_freezetime", nullptr, VT_NOREGISTER, true, "0"); @@ -523,7 +524,7 @@ void CheckWelcomeMessage (void) { // the purpose of this function, is to send quick welcome message, to the listenserver entity. - static bool alreadyReceived = false; + static bool alreadyReceived = !yb_display_welcome_text.GetBool (); static float receiveTime = 0.0f; if (alreadyReceived)