Changeset 7459 in orxonox.OLD for branches/network/src/lib/network/synchronizeable_var/synchronizeable_bool.cc
- Timestamp:
- Apr 30, 2006, 1:50:25 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/synchronizeable_var/synchronizeable_bool.cc
r7446 r7459 43 43 int SynchronizeableBool::writeToBuf( byte * buf, int maxLength ) 44 44 { 45 #warning implement this 45 assert( maxLength >= 1 ); 46 47 buf[0] = ( *vPtrIn ) ? 1 : 0; 48 49 return 1; 46 50 } 47 51 … … 54 58 int SynchronizeableBool::readFromBuf( byte * buf, int maxLength ) 55 59 { 56 #warning implement this 60 assert( maxLength >= 1 ); 61 62 *vPtrOut = buf[0] != 0; 63 64 return 1; 57 65 }
Note: See TracChangeset
for help on using the changeset viewer.