Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-16 12:22:33 +0000
committerStijn Buys <ingar@osirion.org>2008-02-16 12:22:33 +0000
commitd6ee7ec642cc6b3097c8d321a1a00630e24027d1 (patch)
tree35f56e5168cc3e12724898b9efb81b4b2938f575 /src/core/gameinterface.cc
parent715d0c3952a3a1d59b64074e472d0a9a3b414351 (diff)
initial client-to-server connection
Diffstat (limited to 'src/core/gameinterface.cc')
-rw-r--r--src/core/gameinterface.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/gameinterface.cc b/src/core/gameinterface.cc
index ebca24b..a4a402d 100644
--- a/src/core/gameinterface.cc
+++ b/src/core/gameinterface.cc
@@ -17,14 +17,14 @@ namespace core
GameInterface *GameInterface::gameinterface_instance = 0;
-GameInterface::GameInterface()
+GameInterface::GameInterface(const char *game_name)
{
- if (gameinterface_instance) {
- std::cerr << "multiple singleton instances: core::GameInterface" << std::endl;
- exit(2);
- }
gameinterface_instance = this;
connected = false;
+ if (game_name)
+ name.assign(game_name);
+ else
+ name.clear();
}
GameInterface::~GameInterface()