Minor Fixes:
[blender.git] / source / gameengine / GameLogic / SCA_ILogicBrick.cpp
index 422f6d9cf0d3d224dd631115b51d57bed6a1d03c..1780458ba45abcce2b9c500ade7991679c9c3bea 100644 (file)
@@ -309,12 +309,9 @@ PyObject* SCA_ILogicBrick::PyGetExecutePriority(PyObject* self,
 /* Conversions for making life better. */
 bool SCA_ILogicBrick::PyArgToBool(int boolArg)
 {
-       if (boolArg == KX_TRUE) {
+       if (boolArg) {
                return true;
-       } else if (boolArg == KX_FALSE){
-               return false;
        } else {
-               ; /* error: bad conversion: how to catch this? */
                return false;
        }
 }