Changeset 6917 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- Jan 31, 2006, 10:09:45 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_game_manager.cc
r6892 r6917 30 30 #include "playable.h" 31 31 #include "player.h" 32 #include " network_manager.h"32 #include "shared_network_data.h" 33 33 34 34 #include "class_list.h" … … 541 541 if ( b->isA(CL_WORLD_ENTITY) && !b->isA(CL_PLAYABLE) ) 542 542 { 543 if ( NetworkManager::getInstance()->getHostID()!=0 )543 if ( SharedNetworkData::getInstance()->getHostID()!=0 ) 544 544 { 545 545 static Vector pos = Vector(1000.0, 1000.0, 1000.0); -
branches/network/src/lib/network/network_stream.cc
r6892 r6917 26 26 #include "connection_monitor.h" 27 27 #include "synchronizeable.h" 28 #include "network_manager.h"29 28 #include "network_game_manager.h" 29 #include "shared_network_data.h" 30 30 31 31 #include "debug.h" … … 195 195 { 196 196 SharedNetworkData::getInstance()->setHostID( handshakes[i]->getHostId() ); 197 myHostId = NetworkManager::getInstance()->getHostID();197 myHostId = SharedNetworkData::getInstance()->getHostID(); 198 198 199 199 this->networkGameManager = NetworkGameManager::getInstance(); … … 232 232 Header header; 233 233 int counter; 234 234 235 235 for (SynchronizeableList::iterator it = synchronizeables.begin(); it!=synchronizeables.end(); it++) 236 236 { 237 237 counter = 0; 238 238 239 239 if ( (*it)!=NULL && (*it)->beSynchronized() /*&& (*it)->getOwner() == myHostId*/ ) 240 240 { 241 241 do { 242 242 counter++; 243 243 244 244 //check for endless loop 245 245 if ( counter > 50 ) … … 248 248 assert(false); 249 249 } 250 250 251 251 reciever = 0; 252 252 dataLength = (*it)->readBytes(downBuffer, DATA_STREAM_BUFFER_SIZE, &reciever);
Note: See TracChangeset
for help on using the changeset viewer.