Changeset 1942
- Timestamp:
- Oct 18, 2008, 11:22:38 PM (16 years ago)
- Location:
- code/branches/objecthierarchy/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/network/Server.cc
r1941 r1942 282 282 bool Server::addClient(ENetEvent *event){ 283 283 unsigned int newid=0; 284 284 285 285 ClientInformation *temp = ClientInformation::insertBack(new ClientInformation); 286 286 if(!temp){ … … 295 295 temp->setID(newid); 296 296 temp->setPeer(event->peer); 297 297 298 298 // inform all the listeners 299 299 orxonox::ObjectList<ClientConnectionListener>::iterator listener = orxonox::ObjectList<ClientConnectionListener>::begin(); … … 302 302 listener++; 303 303 } 304 304 305 305 COUT(3) << "Server: added client id: " << temp->getID() << std::endl; 306 return createClient(temp->getID()); 306 return createClient(temp->getID()); 307 307 } 308 308 … … 346 346 while(listener){ 347 347 listener->clientDisconnected(client->getID()); 348 listener++; 348 349 } 349 350 -
code/branches/objecthierarchy/src/orxonox/gamestates/GSLevel.cc
r1916 r1942 159 159 // call the loader 160 160 COUT(0) << "Loading level..." << std::endl; 161 startLevel_ = new Level(Settings::getDataPath() + "levels/sample .oxw");161 startLevel_ = new Level(Settings::getDataPath() + "levels/sample2.oxw"); 162 162 Loader::open(startLevel_); 163 163 }
Note: See TracChangeset
for help on using the changeset viewer.