ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/src/brains/DataStorage.cpp
(Generate patch)

Comparing trunk/OOPSE-3.0/src/brains/DataStorage.cpp (file contents):
Revision 2007 by tim, Sun Feb 13 15:56:10 2005 UTC vs.
Revision 2015 by tim, Sun Feb 13 21:18:27 2005 UTC

# Line 333 | Line 333 | int DataStorage::getBytesPerStuntDouble(int layout) {
333      int bytes = 0;
334      if (layout & dslPosition) {
335          bytes += sizeof(Vector3d);
336 <    } else if (layout & dslVelocity) {
336 >    }
337 >    if (layout & dslVelocity) {
338          bytes += sizeof(Vector3d);
339 <    } else if (layout & dslAmat) {
339 >    }
340 >    if (layout & dslAmat) {
341          bytes += sizeof(Mat3x3d);    
342 <    } else if (layout & dslAngularMomentum) {
342 >    }
343 >    if (layout & dslAngularMomentum) {
344          bytes += sizeof(Vector3d);
345 <    } else if (layout & dslElectroFrame) {
346 <        bytes += sizeof(Mat3x3d);
347 <    } else if (layout & dslZAngle) {
345 >    }
346 >    if (layout & dslElectroFrame) {
347 >        bytes += sizeof(Mat3x3d);
348 >    }
349 >    if (layout & dslZAngle) {
350          bytes += sizeof(Vector3d);
351 <    } else if (layout & dslForce) {
351 >    }
352 >    if (layout & dslForce) {
353          bytes += sizeof(Vector3d);
354 <    } else if (layout & dslTorque) {
354 >    }
355 >    if (layout & dslTorque) {
356          bytes += sizeof(Vector3d);
357      }
358      return bytes;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines