- Timestamp:
- Jan 24, 2006, 3:10:55 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_game_manager.cc
r6672 r6673 211 211 int NetworkGameManager::createEntity( ClassID classID, int owner ) 212 212 { 213 if ( this->isServer() 213 if ( this->isServer()) 214 214 { 215 215 if ( NetworkManager::getInstance()->getNewUniqueID() < 0 ) … … 218 218 return -1; 219 219 } 220 221 220 return this->executeCreateEntity( classID, NetworkManager::getInstance()->getNewUniqueID(), owner ); 222 221 } -
branches/network/src/lib/network/network_manager.h
r6672 r6673 54 54 55 55 /** @returns the next uniqueID free for an object */ 56 inline int getNewUniqueID() { return this->newUniqueID++; }56 inline int getNewUniqueID() { return ( this->bGameServer)?this->newUniqueID++:-1; } 57 57 58 58 void debug(); -
branches/network/src/lib/network/network_stream.cc
r6672 r6673 439 439 for (SynchronizeableList::iterator it = synchronizeables.begin(); it!=synchronizeables.end(); it++) 440 440 { 441 //if( (*it)->beSynchronized() == true)441 if( (*it)->beSynchronized() == true) 442 442 PRINT(0)(" Synchronizeable of class: %s::%s, with unique ID: %i, Synchronize: %i\n", (*it)->getClassName(), (*it)->getName(), 443 443 (*it)->getUniqueID(), (*it)->beSynchronized());
Note: See TracChangeset
for help on using the changeset viewer.