Changeset 6108 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- Dec 14, 2005, 3:17:36 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/converter.cc
r6106 r6108 89 89 const int step = 256; // = 2 ^ 8 90 90 int result = 0; 91 for (int i = 0; i < INTSIZE - 2; i++)91 for (int i = 0; i < INTSIZE - 1; i++) 92 92 { 93 93 result += a[i] * mult; … … 95 95 } 96 96 97 if (a[INTSIZE - 1] > sgnadd) 97 printf("tara: %i", result); 98 99 if (a[INTSIZE - 1] >= sgnadd) 98 100 { 99 101 result += (a[INTSIZE - 1] - sgnadd) * mult;
Note: See TracChangeset
for help on using the changeset viewer.