mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-04-21 23:21:52 +02:00
Fix the "fake" newer version number being actually older
This commit is contained in:
parent
7394a1c081
commit
a01a075551
@ -16,8 +16,10 @@
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
|
||||
constexpr auto currentVersion = UPSTREAM_VERSION.displayVersion;
|
||||
constexpr auto nextVersion = Version(98, 0);
|
||||
constexpr auto currentVersion = UPSTREAM_VERSION.displayVersion;
|
||||
constexpr auto nextVersion = Version(99, 0);
|
||||
static_assert(nextVersion >= currentVersion);
|
||||
|
||||
constexpr auto effectiveVersion = ALLOW_FAKE_NEWER_VERSION ? nextVersion : currentVersion;
|
||||
|
||||
static void ConvertJsonToBson(bson *b, Json::Value j, int depth = 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user