From c8b0ac1ad483076729733b51ae671e1298f93998 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Fri, 5 Apr 2024 11:45:48 -0400 Subject: [PATCH] Fix update alert - UPDATE_ALERT is not defined for DEVELOP, instead of being commented out manually. - Added button prompt to the alert, removed "Press a key" text from the alert --- src/doomdef.h | 8 +++----- src/menus/play-online-server-browser.c | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/doomdef.h b/src/doomdef.h index a43df92fd..bbe767eee 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -126,8 +126,8 @@ extern char logfilename[1024]; // the other options the same. // Comment out this line to completely disable update alerts (recommended for testing, but not for release) -#ifndef BETAVERSION -//#define UPDATE_ALERT +#if !defined(BETAVERSION) && !defined(DEVELOP) +#define UPDATE_ALERT #endif // The string used in the alert that pops up in the event of an update being available. @@ -137,9 +137,7 @@ extern char logfilename[1024]; "Please visit kartkrew.org to download it.\n"\ "\n"\ "You are using version: %s\n"\ -"The newest version is: %s\n"\ -"\n"\ -"(Press a key)\n" +"The newest version is: %s\n" // For future use, the codebase is the version of SRB2 that the modification is based on, // and should not be changed unless you have merged changes between versions of SRB2 diff --git a/src/menus/play-online-server-browser.c b/src/menus/play-online-server-browser.c index 6798e5174..68880fa09 100644 --- a/src/menus/play-online-server-browser.c +++ b/src/menus/play-online-server-browser.c @@ -205,7 +205,7 @@ static void M_CheckMODVersion(int id) #ifdef HAVE_THREADS I_lock_mutex(&k_menu_mutex); #endif - M_StartMessage("Game Update", updatestring, NULL, MM_NOTHING, NULL, NULL); + M_StartMessage("Game Update", updatestring, NULL, MM_NOTHING, NULL, "Return to Menu"); #ifdef HAVE_THREADS I_unlock_mutex(k_menu_mutex); #endif