- Timestamp:
- Mar 18, 2009, 9:00:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/network/synchronisable/SynchronisableVariable.h
r2710 r2798 35 35 #include <string> 36 36 #include <cassert> 37 #include "core/Core.h"38 37 #include "core/CoreIncludes.h" 39 38 #include "network/synchronisable/NetworkCallback.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.