mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-10 02:16:37 +02:00
Check for beta updates even if not a beta
The site has been updated to not send beta update information unless user is enrolled in beta updates
This commit is contained in:
@@ -808,19 +808,20 @@ bool Client::CheckUpdate(void *updateRequest, bool checkSession)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef BETA
|
||||
Json::Value betaVersion = versions["Beta"];
|
||||
int betaMajor = betaVersion["Major"].asInt();
|
||||
int betaMinor = betaVersion["Minor"].asInt();
|
||||
int betaBuild = betaVersion["Build"].asInt();
|
||||
std::string betaFile = betaVersion["File"].asString();
|
||||
std::string betaChangelog = betaVersion["Changelog"].asString();
|
||||
if (betaMajor > SAVE_VERSION || (betaMinor > MINOR_VERSION && betaMajor == SAVE_VERSION) || betaBuild > BUILD_NUM)
|
||||
if (!updateAvailable)
|
||||
{
|
||||
updateAvailable = true;
|
||||
updateInfo = UpdateInfo(betaMajor, betaMinor, betaBuild, betaFile, betaChangelog, UpdateInfo::Beta);
|
||||
Json::Value betaVersion = versions["Beta"];
|
||||
int betaMajor = betaVersion["Major"].asInt();
|
||||
int betaMinor = betaVersion["Minor"].asInt();
|
||||
int betaBuild = betaVersion["Build"].asInt();
|
||||
std::string betaFile = betaVersion["File"].asString();
|
||||
std::string betaChangelog = betaVersion["Changelog"].asString();
|
||||
if (betaMajor > SAVE_VERSION || (betaMinor > MINOR_VERSION && betaMajor == SAVE_VERSION) || betaBuild > BUILD_NUM)
|
||||
{
|
||||
updateAvailable = true;
|
||||
updateInfo = UpdateInfo(betaMajor, betaMinor, betaBuild, betaFile, betaChangelog, UpdateInfo::Beta);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef SNAPSHOT
|
||||
Json::Value snapshotVersion = versions["Snapshot"];
|
||||
|
Reference in New Issue
Block a user