Changeset 9386 in orxonox.OLD for branches/proxy/src/lib/network/synchronizeable_var/synchronizeable_bool.cc
- Timestamp:
- Jul 21, 2006, 1:41:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/synchronizeable_var/synchronizeable_bool.cc
r7954 r9386 16 16 17 17 #include "synchronizeable_bool.h" 18 #include <cassert> 18 19 19 20 … … 44 45 { 45 46 assert( maxLength >= 1 ); 46 47 47 48 buf[0] = ( *vPtrIn ) ? 1 : 0; 48 49 49 50 return 1; 50 51 } … … 59 60 { 60 61 assert( maxLength >= 1 ); 61 62 62 63 bool oldVal = *vPtrOut; 63 64 64 65 *vPtrOut = buf[0] != 0; 65 66 66 67 setHasChanged( oldVal != *vPtrOut ); 67 68 68 69 return 1; 69 70 }
Note: See TracChangeset
for help on using the changeset viewer.