From c74dd4a6013730391f7050854abe8fed15b7318e Mon Sep 17 00:00:00 2001 From: scara Date: Fri, 1 Aug 2014 17:42:08 +0100 Subject: [PATCH] More changes to allow game service IP to be moved --- scorched/src/client/client/UniqueIdStore.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scorched/src/client/client/UniqueIdStore.cpp b/scorched/src/client/client/UniqueIdStore.cpp index 4c72ab6e..14d995f9 100644 --- a/scorched/src/client/client/UniqueIdStore.cpp +++ b/scorched/src/client/client/UniqueIdStore.cpp @@ -62,6 +62,11 @@ bool UniqueIdStore::loadStore() if (!node->getNamedChild("id", entry.id)) return false; if (!node->getNamedChild("published", entry.published)) return false; + if (0 == strcmp(entry.published.c_str(), "scorched3d.game-host.org")) + { + entry.published = "game-host.scorched3d.co.uk"; + } + IPaddress ipAddress; if (SDLNet_ResolveHost(&ipAddress, (char *) entry.published.c_str(), 0) == 0) {