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
This commit is contained in:
Sally Coolatta 2024-04-05 11:45:48 -04:00
parent 4e72836ea1
commit c8b0ac1ad4
2 changed files with 4 additions and 6 deletions

View file

@ -126,8 +126,8 @@ extern char logfilename[1024];
// the other options the same. // the other options the same.
// Comment out this line to completely disable update alerts (recommended for testing, but not for release) // Comment out this line to completely disable update alerts (recommended for testing, but not for release)
#ifndef BETAVERSION #if !defined(BETAVERSION) && !defined(DEVELOP)
//#define UPDATE_ALERT #define UPDATE_ALERT
#endif #endif
// The string used in the alert that pops up in the event of an update being available. // 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"\ "Please visit kartkrew.org to download it.\n"\
"\n"\ "\n"\
"You are using version: %s\n"\ "You are using version: %s\n"\
"The newest version is: %s\n"\ "The newest version is: %s\n"
"\n"\
"(Press a key)\n"
// For future use, the codebase is the version of SRB2 that the modification is based on, // 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 // and should not be changed unless you have merged changes between versions of SRB2

View file

@ -205,7 +205,7 @@ static void M_CheckMODVersion(int id)
#ifdef HAVE_THREADS #ifdef HAVE_THREADS
I_lock_mutex(&k_menu_mutex); I_lock_mutex(&k_menu_mutex);
#endif #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 #ifdef HAVE_THREADS
I_unlock_mutex(k_menu_mutex); I_unlock_mutex(k_menu_mutex);
#endif #endif