Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better error

  • Loading branch information...
commit 01767865775b19b66327ff6b23a9050d337889b4 1 parent 28f53ec
@SuperV1234 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/SSVOpenHexagon/Global/Config.cpp
View
4 src/SSVOpenHexagon/Global/Config.cpp
@@ -29,7 +29,7 @@ namespace hg
float sizeX{1500}, sizeY{1500};
constexpr float spawnDistance{1600};
string uneligibilityReason{""};
-
+
void loadConfig(vector<string> mOverridesIds)
{
log("loading config", "CONFIG");
@@ -95,7 +95,7 @@ namespace hg
if(getPlayerSize() != 7.3f) { uneligibilityReason = "player size modified"; return false; }
if(getInvincible()) { uneligibilityReason = "invincibility on"; return false; }
if(getNoRotation()) { uneligibilityReason = "rotation off"; return false; }
- if(Online::getServerVersion() == -1) { uneligibilityReason = "version mismatch"; return false; }
+ if(Online::getServerVersion() == -1) { uneligibilityReason = "connection error"; return false; }
if(Online::getServerVersion() > getVersion()) { uneligibilityReason = "version mismatch"; return false; }
return true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.