Skip to content

Commit

Permalink
More changes to allow game service IP to be moved
Browse files Browse the repository at this point in the history
  • Loading branch information
scara committed Aug 1, 2014
1 parent 60e5ecc commit c74dd4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scorched/src/client/client/UniqueIdStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit c74dd4a

Please sign in to comment.