From c7c9ae3847a195436863df95eee190bd87353b62 Mon Sep 17 00:00:00 2001 From: James R Date: Tue, 1 Sep 2020 16:22:29 -0700 Subject: [PATCH] Disable update alert if this is a prerelease --- src/doomdef.h | 2 ++ src/m_menu.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/doomdef.h b/src/doomdef.h index b1ce0b79c..22d98d792 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -157,7 +157,9 @@ 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 +#endif // The string used in the alert that pops up in the event of an update being available. // Please change to apply to your modification (we don't want everyone asking where your mod is on SRB2.org!). diff --git a/src/m_menu.c b/src/m_menu.c index d09ce6087..9b538c66a 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -11227,6 +11227,7 @@ Check_new_version_thread (int *id) GetRoomsList(hosting, *id); } } +#ifdef UPDATE_ALERT else { I_lock_mutex(&ms_QueryId_mutex); @@ -11235,6 +11236,7 @@ Check_new_version_thread (int *id) } I_unlock_mutex(ms_QueryId_mutex); } +#endif if (okay) {