From c64e0343206776ac500e269e6d772b5842cc97e6 Mon Sep 17 00:00:00 2001 From: Bill Meltsner Date: Sat, 3 Apr 2010 07:12:52 -0400 Subject: [PATCH] Fixed setFixedRotation enabling other flags (bug #190) --- src/modules/physics/box2d/Body.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/physics/box2d/Body.cpp b/src/modules/physics/box2d/Body.cpp index dfa1616bf..f32d2ad45 100644 --- a/src/modules/physics/box2d/Body.cpp +++ b/src/modules/physics/box2d/Body.cpp @@ -296,7 +296,7 @@ namespace box2d if(fixed) body->m_flags |= b2Body::e_fixedRotationFlag; else - body->m_flags |= ~(b2Body::e_fixedRotationFlag); + body->m_flags &= ~(b2Body::e_fixedRotationFlag); } bool Body::getFixedRotation() const