diff --git a/README.md b/README.md index ce16a48..e816b0c 100644 --- a/README.md +++ b/README.md @@ -88,21 +88,17 @@ struct RigidBody { serialize_object( stream, position ); serialize_object( stream, orientation ); - serialize_bool( stream, atRest ); - if ( !atRest ) { serialize_object( stream, linearVelocity ); serialize_object( stream, angularVelocity ); } - - if ( Stream::IsReading && atRest ) + else if ( Stream::IsReading && atRest ) { linearVelocity.x = linearVelocity.y = linearVelocity.z = 0.0; angularVelocity.x = angularVelocity.y = angularVelocity.z = 0.0; } - return true; } };