Removed unnecessary switch.

This commit is contained in:
Felix Ableitner 2012-09-11 16:08:38 +02:00
parent 34f0f95bce
commit 19569a0443

View file

@ -25,10 +25,8 @@ Physical::Physical(const PhysicalData& data) :
// not moving -> static body
// moving -> dynamic body
// bullet -> kinematic body
bodyDef.type = (data.moving) ?
(data.bullet)
? b2_dynamicBody
: b2_dynamicBody
bodyDef.type = (data.moving)
? b2_dynamicBody
: b2_staticBody;
bodyDef.position = vector(data.position);
bodyDef.allowSleep = true;