diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-16 12:22:33 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-16 12:22:33 +0000 |
commit | d6ee7ec642cc6b3097c8d321a1a00630e24027d1 (patch) | |
tree | 35f56e5168cc3e12724898b9efb81b4b2938f575 /src/core/gameinterface.cc | |
parent | 715d0c3952a3a1d59b64074e472d0a9a3b414351 (diff) |
initial client-to-server connection
Diffstat (limited to 'src/core/gameinterface.cc')
-rw-r--r-- | src/core/gameinterface.cc | 10 |
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() |