mirror of
https://github.com/love2d/love.git
synced 2026-08-20 20:49:54 +02:00
fixed a bug in PrismaticJoint::setMotorEnabled where it ignored the argument passed
This commit is contained in:
@@ -60,7 +60,7 @@ namespace box2d
|
|||||||
|
|
||||||
void PrismaticJoint::setMotorEnabled(bool motor)
|
void PrismaticJoint::setMotorEnabled(bool motor)
|
||||||
{
|
{
|
||||||
return joint->EnableMotor(true);
|
return joint->EnableMotor(motor);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PrismaticJoint::isMotorEnabled() const
|
bool PrismaticJoint::isMotorEnabled() const
|
||||||
|
|||||||
Reference in New Issue
Block a user