Changeset 9406 in orxonox.OLD for trunk/src/lib/network/synchronizeable_var/synchronizeable_float.cc
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/synchronizeable_var/synchronizeable_float.cc
r7954 r9406 17 17 #include "synchronizeable_float.h" 18 18 #include "converter.h" 19 #include <cassert> 19 20 20 21 … … 46 47 { 47 48 int res = Converter::floatToByteArray( *vPtrIn, buf, maxLength ); 48 49 49 50 assert( res == FLOATSIZE ); 50 51 51 52 return res; 52 53 } … … 61 62 { 62 63 assert( maxLength >= FLOATSIZE ); 63 64 64 65 float oldVal = *vPtrOut; 65 66 66 67 int res = Converter::byteArrayToFloat( buf, vPtrOut ); 67 68 68 69 setHasChanged( oldVal != *vPtrOut ); 69 70 70 71 assert( res == FLOATSIZE ); 71 72 72 73 return res; 73 74 }
Note: See TracChangeset
for help on using the changeset viewer.