rename and negate DISABLE_PYTHON --> WITH_PYTHON
[blender.git] / source / gameengine / Ketsji / KX_GameActuator.cpp
index bc0f875bca62d873f1f96397ccfc6382ed283b3b..1a195913e4a707f855eb9192502b0d7de56b9d78 100644 (file)
@@ -17,7 +17,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  *
  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
  * All rights reserved.
 #include <stdio.h>
 #include <stdlib.h>
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 /* ------------------------------------------------------------------------- */
 /* Native functions                                                          */
 /* ------------------------------------------------------------------------- */
@@ -51,7 +47,7 @@ KX_GameActuator::KX_GameActuator(SCA_IObject *gameobj,
                                                                   int mode,
                                                                   const STR_String& filename,
                                                                   const STR_String& loadinganimationname,
-                                                                  KX_Scene* scene,
+                                                                  SCA_IScene* scene,
                                                                   KX_KetsjiEngine* ketsjiengine)
                                                                   : SCA_IActuator(gameobj, KX_ACT_GAME)
 {
@@ -128,7 +124,7 @@ bool KX_GameActuator::Update()
                }
        case KX_GAME_SAVECFG:
                {
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
                        if (m_ketsjiengine)
                        {
                                char mashal_path[512];
@@ -156,11 +152,11 @@ bool KX_GameActuator::Update()
                                        delete [] marshal_buffer;
                        }
                        break;
-#endif // DISABLE_PYTHON
+#endif // WITH_PYTHON
                }
        case KX_GAME_LOADCFG:
                {
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
                        if (m_ketsjiengine)
                        {
                                char mashal_path[512];
@@ -195,7 +191,7 @@ bool KX_GameActuator::Update()
                                }
                        }
                        break;
-#endif // DISABLE_PYTHON
+#endif // WITH_PYTHON
                }
        default:
                ; /* do nothing? this is an internal error !!! */
@@ -205,7 +201,7 @@ bool KX_GameActuator::Update()
 }
 
 
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
 
 /* ------------------------------------------------------------------------- */
 /* Python functions                                                          */
@@ -245,4 +241,4 @@ PyAttributeDef KX_GameActuator::Attributes[] = {
        { NULL }        //Sentinel
 };
 
-#endif // DISABLE_PYTHON
+#endif // WITH_PYTHON