Browse files

Better error

  • Loading branch information...
1 parent 28f53ec commit 01767865775b19b66327ff6b23a9050d337889b4 @SuperV1234 committed Apr 7, 2013
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;
}

0 comments on commit 0176786

Please sign in to comment.