Disable update alert if this is a prerelease
This commit is contained in:
parent
4b7d16283d
commit
c7c9ae3847
|
@ -157,7 +157,9 @@ 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
|
||||||
#define UPDATE_ALERT
|
#define UPDATE_ALERT
|
||||||
|
#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.
|
||||||
// Please change to apply to your modification (we don't want everyone asking where your mod is on SRB2.org!).
|
// Please change to apply to your modification (we don't want everyone asking where your mod is on SRB2.org!).
|
||||||
|
|
|
@ -11227,6 +11227,7 @@ Check_new_version_thread (int *id)
|
||||||
GetRoomsList(hosting, *id);
|
GetRoomsList(hosting, *id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef UPDATE_ALERT
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
I_lock_mutex(&ms_QueryId_mutex);
|
I_lock_mutex(&ms_QueryId_mutex);
|
||||||
|
@ -11235,6 +11236,7 @@ Check_new_version_thread (int *id)
|
||||||
}
|
}
|
||||||
I_unlock_mutex(ms_QueryId_mutex);
|
I_unlock_mutex(ms_QueryId_mutex);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (okay)
|
if (okay)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue