mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-10 02:16:37 +02:00
only display updates based on build number, not version number
This commit is contained in:
@@ -831,7 +831,7 @@ bool Client::CheckUpdate(void *updateRequest, bool checkSession)
|
|||||||
int stableBuild = stableVersion["Build"].asInt();
|
int stableBuild = stableVersion["Build"].asInt();
|
||||||
std::string stableFile = stableVersion["File"].asString();
|
std::string stableFile = stableVersion["File"].asString();
|
||||||
std::string stableChangelog = stableVersion["Changelog"].asString();
|
std::string stableChangelog = stableVersion["Changelog"].asString();
|
||||||
if (stableMajor > SAVE_VERSION || (stableMinor > MINOR_VERSION && stableMajor == SAVE_VERSION) || stableBuild > BUILD_NUM)
|
if (stableBuild > BUILD_NUM)
|
||||||
{
|
{
|
||||||
updateAvailable = true;
|
updateAvailable = true;
|
||||||
updateInfo = UpdateInfo(stableMajor, stableMinor, stableBuild, stableFile, stableChangelog, UpdateInfo::Stable);
|
updateInfo = UpdateInfo(stableMajor, stableMinor, stableBuild, stableFile, stableChangelog, UpdateInfo::Stable);
|
||||||
@@ -846,7 +846,7 @@ bool Client::CheckUpdate(void *updateRequest, bool checkSession)
|
|||||||
int betaBuild = betaVersion["Build"].asInt();
|
int betaBuild = betaVersion["Build"].asInt();
|
||||||
std::string betaFile = betaVersion["File"].asString();
|
std::string betaFile = betaVersion["File"].asString();
|
||||||
std::string betaChangelog = betaVersion["Changelog"].asString();
|
std::string betaChangelog = betaVersion["Changelog"].asString();
|
||||||
if (betaMajor > SAVE_VERSION || (betaMinor > MINOR_VERSION && betaMajor == SAVE_VERSION) || betaBuild > BUILD_NUM)
|
if (betaBuild > BUILD_NUM)
|
||||||
{
|
{
|
||||||
updateAvailable = true;
|
updateAvailable = true;
|
||||||
updateInfo = UpdateInfo(betaMajor, betaMinor, betaBuild, betaFile, betaChangelog, UpdateInfo::Beta);
|
updateInfo = UpdateInfo(betaMajor, betaMinor, betaBuild, betaFile, betaChangelog, UpdateInfo::Beta);
|
||||||
|
Reference in New Issue
Block a user