Changeset 2908 for code/branches/questsystem5/src/network/synchronisable
- Timestamp:
- Apr 8, 2009, 12:58:47 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/network/synchronisable/NetworkCallback.h
-
code/branches/questsystem5/src/network/synchronisable/Synchronisable.cc
-
code/branches/questsystem5/src/network/synchronisable/Synchronisable.h
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/network/synchronisable/SynchronisableVariable.cc
r2907 r2908 30 30 #include <cstring> 31 31 #include "util/Math.h" 32 #include "core/GameMode.h"33 32 34 33 … … 37 36 uint8_t SynchronisableVariableBase::state_ = 0; 38 37 39 /*static*/ void SynchronisableVariableBase::setState()40 {41 if ( state_ == 0x0 )42 {43 state_ = GameMode::isMaster() ? 0x1 : 0x2; // set the appropriate mode here44 }45 }46 38 47 39 -
code/branches/questsystem5/src/network/synchronisable/SynchronisableVariable.h
r2907 r2908 35 35 #include <string> 36 36 #include <cassert> 37 #include "util/Math.h" 37 #include "core/Core.h" 38 #include "core/CoreIncludes.h" 38 39 #include "network/synchronisable/NetworkCallback.h" 39 40 #include "network/synchronisable/NetworkCallbackManager.h" … … 62 63 virtual ~SynchronisableVariableBase() {} 63 64 protected: 64 static void setState();65 65 static uint8_t state_; 66 66 }; … … 110 110 variable_( variable ), mode_( syncDirection ), callback_( cb ) 111 111 { 112 setState(); 112 if ( state_ == 0x0 ) 113 { 114 state_ = Core::isMaster() ? 0x1 : 0x2; // set the appropriate mode here 115 } 113 116 } 114 117
Note: See TracChangeset
for help on using the changeset viewer.