From d6ee7ec642cc6b3097c8d321a1a00630e24027d1 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 16 Feb 2008 12:22:33 +0000 Subject: initial client-to-server connection --- src/core/gameinterface.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/gameinterface.cc') 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() -- cgit v1.2.3