Changeset 5742 for code/trunk/src/libraries/network/synchronisable
- Timestamp:
- Sep 6, 2009, 5:03:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/network/synchronisable/Synchronisable.cc
r5738 r5742 33 33 #include <cstdlib> 34 34 #include "core/CoreIncludes.h" 35 #include "core/GameMode.h" 35 36 #include "core/BaseObject.h" 36 37 #include "network/Host.h" … … 52 53 static uint32_t idCounter=0; 53 54 objectMode_=0x1; // by default do not send data to server 54 if ( !Host::running() || ( Host::running() && Host::isServer() ) )55 if ( GameMode::isMaster() || ( Host::running() && Host::isServer() ) ) 55 56 { 56 57 this->objectID = idCounter++; //this is only needed when running a server
Note: See TracChangeset
for help on using the changeset viewer.