Changeset 1389 for code/branches/network/src
- Timestamp:
- May 22, 2008, 5:53:24 PM (17 years ago)
- Location:
- code/branches/network/src/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/ClientInformation.cc
r1378 r1389 85 85 ClientInformation::~ClientInformation() { 86 86 boost::recursive_mutex::scoped_lock lock(mutex_); 87 if( next()!=0)87 if(prev()!=0) 88 88 prev()->setNext(this->next()); 89 89 if(next()!=0) -
code/branches/network/src/network/ClientInformation.h
r1360 r1389 95 95 bool setSynched(bool s); 96 96 bool getSynched(); 97 static boost::recursive_mutex mutex_; 97 98 98 99 … … 114 115 bool head_; 115 116 unsigned short failures_; 116 static boost::recursive_mutex mutex_;117 117 118 118 }; -
code/branches/network/src/network/ConnectionManager.cc
r1379 r1389 345 345 346 346 bool ConnectionManager::removeClient(int clientID){ 347 boost::recursive_mutex::scoped_lock lock(head_->mutex_); 347 348 orxonox::Iterator<orxonox::SpaceShip> it = orxonox::ObjectList<orxonox::SpaceShip>::start(); 348 349 ClientInformation *client = head_->findClient(clientID); … … 371 372 } 372 373 orxonox::SpaceShip *no = dynamic_cast<orxonox::SpaceShip *>(id->fabricate()); 373 no->setPosition(orxonox::Vector3(0, 80,0));374 no->setPosition(orxonox::Vector3(0,0,80)); 374 375 no->setScale(10); 375 no->setYawPitchRoll(orxonox::Degree(-90),orxonox::Degree(-90),orxonox::Degree(0));376 //no->setYawPitchRoll(orxonox::Degree(-90),orxonox::Degree(-90),orxonox::Degree(0)); 376 377 no->setMesh("assff.mesh"); 377 378 no->setMaxSpeed(500); -
code/branches/network/src/network/Server.cc
r1379 r1389 42 42 43 43 #include <iostream> 44 44 45 45 46 #include "ConnectionManager.h" … … 196 197 bool Server::sendGameState() { 197 198 COUT(5) << "Server: starting function sendGameState" << std::endl; 199 boost::recursive_mutex::scoped_lock lock(clients->mutex_); 198 200 ClientInformation *temp = clients; 199 201 bool added=false;
Note: See TracChangeset
for help on using the changeset viewer.