Changeset 6654 in orxonox.OLD for branches/network/src/lib/network/network_manager.cc
- Timestamp:
- Jan 23, 2006, 12:08:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_manager.cc
r6341 r6654 49 49 this->netStreamList = NULL; 50 50 this->syncList = NULL; 51 this-> tmpStream = NULL;51 this->defaultSyncStream = NULL; 52 52 53 53 this->hostID = -1; … … 98 98 } 99 99 100 this-> tmpStream = new NetworkStream(ipAddress);100 this->defaultSyncStream = new NetworkStream(ipAddress); 101 101 return 1; 102 102 } … … 111 111 this->hostID = 0; 112 112 this->bGameServer = true; 113 this-> tmpStream = new NetworkStream(port);113 this->defaultSyncStream = new NetworkStream(port); 114 114 this->bGameServer = true; 115 115 SDL_Delay(20); … … 126 126 { 127 127 /* creating a new network stream, it will register itself automaticaly to the class list */ 128 this-> tmpStream = new NetworkStream(address);129 this-> tmpStream->connectSynchronizeable(sync);128 this->defaultSyncStream = new NetworkStream(address); 129 this->defaultSyncStream->connectSynchronizeable(sync); 130 130 } 131 131 … … 142 142 void NetworkManager::connectSynchronizeable(Synchronizeable& sync) 143 143 { 144 this-> tmpStream->connectSynchronizeable(sync);144 this->defaultSyncStream->connectSynchronizeable(sync); 145 145 } 146 146
Note: See TracChangeset
for help on using the changeset viewer.