Changeset 2896 for code/trunk/src/network/synchronisable
- Timestamp:
- Apr 6, 2009, 1:59:00 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/gui merged: 2796,2798-2801,2805,2807-2808,2811,2814-2817,2834,2840-2850,2853-2854,2859,2862-2863,2869,2875,2887,2892
- Property svn:mergeinfo changed
-
code/trunk/src/network/synchronisable/NetworkCallback.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/network/synchronisable/Synchronisable.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/network/synchronisable/Synchronisable.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/network/synchronisable/SynchronisableVariable.cc
r2710 r2896 30 30 #include <cstring> 31 31 #include "util/Math.h" 32 #include "core/GameMode.h" 32 33 33 34 … … 36 37 uint8_t SynchronisableVariableBase::state_ = 0; 37 38 39 /*static*/ void SynchronisableVariableBase::setState() 40 { 41 if ( state_ == 0x0 ) 42 { 43 state_ = GameMode::isMaster() ? 0x1 : 0x2; // set the appropriate mode here 44 } 45 } 38 46 39 47 -
code/trunk/src/network/synchronisable/SynchronisableVariable.h
r2710 r2896 35 35 #include <string> 36 36 #include <cassert> 37 #include "core/Core.h" 38 #include "core/CoreIncludes.h" 37 #include "util/Math.h" 39 38 #include "network/synchronisable/NetworkCallback.h" 40 39 #include "network/synchronisable/NetworkCallbackManager.h" … … 63 62 virtual ~SynchronisableVariableBase() {} 64 63 protected: 64 static void setState(); 65 65 static uint8_t state_; 66 66 }; … … 110 110 variable_( variable ), mode_( syncDirection ), callback_( cb ) 111 111 { 112 if ( state_ == 0x0 ) 113 { 114 state_ = Core::isMaster() ? 0x1 : 0x2; // set the appropriate mode here 115 } 112 setState(); 116 113 } 117 114
Note: See TracChangeset
for help on using the changeset viewer.