Changeset 9281 in orxonox.OLD for branches/proxy
- Timestamp:
- Jul 13, 2006, 11:21:21 PM (18 years ago)
- Location:
- branches/proxy/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/defs/class_id.h
r9235 r9281 422 422 CL_PLAYER_STATS = 0x00000d09, 423 423 CL_SIMPLE_SYNC = 0x00000d0a, 424 CL_NETWORK_MONITOR = 0x00000d0b, 424 425 425 426 -
branches/proxy/src/lib/network/monitor/network_monitor.cc
r9280 r9281 34 34 */ 35 35 NetworkMonitor::NetworkMonitor(NetworkStream* networkStream) 36 : Synchronizeable() 36 37 { 38 this->setClassID(CL_NETWORK_MONITOR, "NetworkMonitor"); 39 37 40 this->networkStream = networkStream; 38 41 this->playerNumber = 0; 42 this->setSynchronized(false); 39 43 } 40 44 -
branches/proxy/src/lib/network/network_stream.cc
r9280 r9281 105 105 this->serverSocket = NULL; 106 106 this->networkGameManager = NULL; 107 this->networkMonitor = new NetworkMonitor(this);107 this->networkMonitor = NULL; 108 108 109 109 this->myHostId = 0; … … 222 222 void NetworkStream::processData() 223 223 { 224 // create the network monitor after all the init work and before there is any connection handlings 225 if( this->networkMonitor == NULL) 226 this->networkMonitor = new NetworkMonitor(this); 227 228 224 229 int tick = SDL_GetTicks(); 225 230
Note: See TracChangeset
for help on using the changeset viewer.