Changeset 3000 for code/branches/ggz/src/orxonox/gamestates/GSClient.cc
- Timestamp:
- May 20, 2009, 8:47:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ggz/src/orxonox/gamestates/GSClient.cc
r2171 r3000 24 24 * Co-authors: 25 25 * Fabian 'x3n' Landau 26 * Adrian Friedli 26 27 * 27 28 */ … … 53 54 Core::setIsClient(true); 54 55 56 #ifdef HAS_GGZ 57 ggzClient = NULL; 58 if (GGZClient::isActive()) { 59 COUT(3) << "Initializing GGZ\n"; 60 ggzClient = new GGZClient; 61 } 62 else { 63 COUT(3) << "Not using GGZ\n"; 64 } 65 #else /* HAS_GGZ */ 66 COUT(3) << "GGZ support disabled\n"; 67 #endif /* HAS_GGZ */ 68 55 69 this->client_ = new Client(CommandLine::getValue("ip").getString(), CommandLine::getValue("port")); 56 70 … … 69 83 client_->closeConnection(); 70 84 85 #ifdef HAS_GGZ 86 if (ggzClient) 87 { 88 delete ggzClient; 89 } 90 #endif /* HAS_GGZ */ 91 71 92 // destroy client 72 93 delete this->client_;
Note: See TracChangeset
for help on using the changeset viewer.