Changeset 7255 in orxonox.OLD for branches/preferences/src/orxonox.cc
- Timestamp:
- Mar 30, 2006, 11:11:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/preferences/src/orxonox.cc
r7254 r7255 89 89 90 90 /* this way, there is no network enabled: */ 91 this->serverName = NULL;91 this->serverName = ""; 92 92 this->port = -1; 93 93 … … 185 185 * initialize Orxonox with command line 186 186 */ 187 int Orxonox::init (int argc, char** argv, const char*name, int port)187 int Orxonox::init (int argc, char** argv, const std::string & name, int port) 188 188 { 189 189 this->argc = argc; … … 277 277 PRINT(3)("> Initializing networking\n"); 278 278 279 if( this->serverName != NULL) // we are a client279 if( this->serverName != "") // we are a client 280 280 { 281 281 State::setOnline(true); … … 424 424 return startNetworkOrxonox(argc, argv); 425 425 426 return startOrxonox(argc, argv, NULL, -1);426 return startOrxonox(argc, argv, "", -1); 427 427 return 0; 428 428 } … … 461 461 printf("Starting Orxonox as server: listening on port %i\n", port); 462 462 463 startOrxonox(argc, argv, NULL, port);463 startOrxonox(argc, argv, "", port); 464 464 } 465 465 } … … 472 472 * @param argv parameters given to orxonox 473 473 */ 474 int startOrxonox(int argc, char** argv, const char*name, int port)474 int startOrxonox(int argc, char** argv, const std::string & name, int port) 475 475 { 476 476 // checking for existence of the configuration-files, or if the lock file is still used
Note: See TracChangeset
for help on using the changeset viewer.