rename and negate DISABLE_PYTHON --> WITH_PYTHON
This commit is contained in:
@@ -153,7 +153,7 @@ void BL_ConvertControllers(
|
||||
bPythonCont* pycont = (bPythonCont*) bcontr->data;
|
||||
SCA_PythonController* pyctrl = new SCA_PythonController(gameobj, pycont->mode);
|
||||
gamecontroller = pyctrl;
|
||||
#ifndef DISABLE_PYTHON
|
||||
#ifdef WITH_PYTHON
|
||||
|
||||
pyctrl->SetNamespace(converter->GetPyNamespace());
|
||||
|
||||
@@ -183,7 +183,7 @@ void BL_ConvertControllers(
|
||||
}
|
||||
}
|
||||
|
||||
#endif // DISABLE_PYTHON
|
||||
#endif // WITH_PYTHON
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -210,7 +210,7 @@ void BL_ConvertControllers(
|
||||
|
||||
converter->RegisterGameController(gamecontroller, bcontr);
|
||||
|
||||
#ifndef DISABLE_PYTHON
|
||||
#ifdef WITH_PYTHON
|
||||
if (bcontr->type==CONT_PYTHON) {
|
||||
SCA_PythonController *pyctrl= static_cast<SCA_PythonController*>(gamecontroller);
|
||||
/* not strictly needed but gives syntax errors early on and
|
||||
@@ -225,7 +225,7 @@ void BL_ConvertControllers(
|
||||
// pyctrl->Import();
|
||||
}
|
||||
}
|
||||
#endif // DISABLE_PYTHON
|
||||
#endif // WITH_PYTHON
|
||||
|
||||
//done with gamecontroller
|
||||
gamecontroller->Release();
|
||||
|
||||
Reference in New Issue
Block a user