mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fixed setFixedRotation enabling other flags (bug #190)
This commit is contained in:
@@ -296,7 +296,7 @@ namespace box2d
|
|||||||
if(fixed)
|
if(fixed)
|
||||||
body->m_flags |= b2Body::e_fixedRotationFlag;
|
body->m_flags |= b2Body::e_fixedRotationFlag;
|
||||||
else
|
else
|
||||||
body->m_flags |= ~(b2Body::e_fixedRotationFlag);
|
body->m_flags &= ~(b2Body::e_fixedRotationFlag);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Body::getFixedRotation() const
|
bool Body::getFixedRotation() const
|
||||||
|
|||||||
Reference in New Issue
Block a user