Changeset 9406 in orxonox.OLD for trunk/src/lib/network/synchronizeable_var/synchronizeable_int.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_int.cc
r7954 r9406 18 18 #include "converter.h" 19 19 20 #include <cassert> 20 21 21 22 /** … … 46 47 { 47 48 int res = Converter::intToByteArray( *vPtrIn, buf, maxLength ); 48 49 49 50 assert( res == INTSIZE ); 50 51 51 52 return res; 52 53 } … … 61 62 { 62 63 assert( maxLength >= INTSIZE ); 63 64 64 65 int oldVal = *vPtrOut; 65 66 66 67 int res = Converter::byteArrayToInt( buf, vPtrOut ); 67 68 68 69 setHasChanged( oldVal != *vPtrOut ); 69 70 70 71 assert( res == INTSIZE ); 71 72 72 73 return res; 73 74 }
Note: See TracChangeset
for help on using the changeset viewer.