Fix BGE sound actuator property access
authorCampbell Barton <ideasman42@gmail.com>
Sat, 18 Nov 2017 06:16:25 +0000 (17:16 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 18 Nov 2017 06:16:25 +0000 (17:16 +1100)
source/gameengine/Ketsji/KX_SoundActuator.cpp

index d858097abef809e2783cf3a98f77b5529acef38b..64aab31ba22d58d843517c8028744d87920b96d4 100644 (file)
@@ -488,7 +488,7 @@ int KX_SoundActuator::pyattr_set_3d_property(void *self, const struct KX_PYATTRI
                if (actuator->m_handle)
                        AUD_Handle_setAttenuation(actuator->m_handle, prop_value);
 
-       } else if (!!strcmp(prop, "cone_angle_inner")) {
+       } else if (!strcmp(prop, "cone_angle_inner")) {
                actuator->m_3d.cone_inner_angle = prop_value;
                if (actuator->m_handle)
                        AUD_Handle_setConeAngleInner(actuator->m_handle, prop_value);