Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/gameengine/GameLogic')
-rw-r--r--source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp16
-rw-r--r--source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp6
-rw-r--r--source/gameengine/GameLogic/SCA_2DFilterActuator.cpp8
-rw-r--r--source/gameengine/GameLogic/SCA_ISensor.cpp6
-rw-r--r--source/gameengine/GameLogic/SCA_JoystickManager.cpp4
-rw-r--r--source/gameengine/GameLogic/SCA_JoystickSensor.cpp30
-rw-r--r--source/gameengine/GameLogic/SCA_LogicManager.cpp4
-rw-r--r--source/gameengine/GameLogic/SCA_PropertySensor.cpp4
-rw-r--r--source/gameengine/GameLogic/SCA_PythonController.cpp34
-rw-r--r--source/gameengine/GameLogic/SCA_RandomActuator.cpp18
10 files changed, 65 insertions, 65 deletions
diff --git a/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp b/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp
index b22246014bf..38416a340c7 100644
--- a/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp
+++ b/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp
@@ -51,10 +51,10 @@ SCA_Joystick::SCA_Joystick(short int index)
m_istrig_button(0),
m_istrig_hat(0)
{
- for(int i=0; i<JOYAXIS_MAX; i++)
+ for (int i=0; i<JOYAXIS_MAX; i++)
m_axis_array[i]= 0;
- for(int i=0; i<JOYHAT_MAX; i++)
+ for (int i=0; i<JOYHAT_MAX; i++)
m_hat_array[i]= 0;
#ifdef WITH_SDL
@@ -92,9 +92,9 @@ SCA_Joystick *SCA_Joystick::GetInstance( short int joyindex )
// when GHOST is running under SDL, video is initialized elsewhere.
// Do this once only.
# ifdef WITH_GHOST_SDL
- if(SDL_InitSubSystem(SDL_INIT_JOYSTICK) == -1 ){
+ if (SDL_InitSubSystem(SDL_INIT_JOYSTICK) == -1 ){
# else
- if(SDL_InitSubSystem(SDL_INIT_JOYSTICK | SDL_INIT_VIDEO) == -1 ){
+ if (SDL_InitSubSystem(SDL_INIT_JOYSTICK | SDL_INIT_VIDEO) == -1 ){
# endif
echo("Error-Initializing-SDL: " << SDL_GetError());
return NULL;
@@ -239,7 +239,7 @@ bool SCA_Joystick::CreateJoystickDevice(void)
m_axismax = m_buttonmax = m_hatmax = 0;
return false;
#else /* WITH_SDL */
- if(m_isinit == false){
+ if (m_isinit == false){
if (m_joyindex>=m_joynum) {
// don't print a message, because this is done anyway
//echo("Joystick-Error: " << SDL_NumJoysticks() << " avaiable joystick(s)");
@@ -264,9 +264,9 @@ bool SCA_Joystick::CreateJoystickDevice(void)
else if (m_axismax < 0) m_axismax = 0;
if (m_hatmax > JOYHAT_MAX) m_hatmax= JOYHAT_MAX; /* very unlikely */
- else if(m_hatmax<0) m_hatmax= 0;
+ else if (m_hatmax<0) m_hatmax= 0;
- if(m_buttonmax<0) m_buttonmax= 0;
+ if (m_buttonmax<0) m_buttonmax= 0;
}
return true;
@@ -278,7 +278,7 @@ void SCA_Joystick::DestroyJoystickDevice(void)
{
#ifdef WITH_SDL
if (m_isinit){
- if(SDL_JoystickOpened(m_joyindex)){
+ if (SDL_JoystickOpened(m_joyindex)){
echo("Closing-joystick " << m_joyindex);
SDL_JoystickClose(m_private->m_joystick);
}
diff --git a/source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp b/source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp
index e1ab364ae67..44b6cfd7d35 100644
--- a/source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp
+++ b/source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp
@@ -40,7 +40,7 @@
#ifdef WITH_SDL
void SCA_Joystick::OnAxisMotion(SDL_Event* sdl_event)
{
- if(sdl_event->jaxis.axis >= JOYAXIS_MAX)
+ if (sdl_event->jaxis.axis >= JOYAXIS_MAX)
return;
m_axis_array[sdl_event->jaxis.axis]= sdl_event->jaxis.value;
@@ -50,7 +50,7 @@ void SCA_Joystick::OnAxisMotion(SDL_Event* sdl_event)
/* See notes below in the event loop */
void SCA_Joystick::OnHatMotion(SDL_Event* sdl_event)
{
- if(sdl_event->jhat.hat >= JOYHAT_MAX)
+ if (sdl_event->jhat.hat >= JOYHAT_MAX)
return;
m_hat_array[sdl_event->jhat.hat]= sdl_event->jhat.value;
@@ -85,7 +85,7 @@ void SCA_Joystick::HandleEvents(void)
int i;
for (i=0; i<m_joynum; i++) { /* could use JOYINDEX_MAX but no reason to */
- if(SCA_Joystick::m_instance[i])
+ if (SCA_Joystick::m_instance[i])
SCA_Joystick::m_instance[i]->OnNothing(&sdl_event);
}
diff --git a/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp b/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp
index 05422edb62c..df585c946eb 100644
--- a/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp
+++ b/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp
@@ -55,7 +55,7 @@ SCA_2DFilterActuator::SCA_2DFilterActuator(
m_scene(scene)
{
m_gameobj = NULL;
- if(gameobj){
+ if (gameobj){
m_propNames = gameobj->GetPropertyNames();
m_gameobj = gameobj;
}
@@ -79,16 +79,16 @@ bool SCA_2DFilterActuator::Update()
if (bNegativeEvent)
return false; // do nothing on negative events
- if( m_type == RAS_2DFilterManager::RAS_2DFILTER_MOTIONBLUR )
+ if ( m_type == RAS_2DFilterManager::RAS_2DFILTER_MOTIONBLUR )
{
- if(!m_disableMotionBlur)
+ if (!m_disableMotionBlur)
m_rasterizer->EnableMotionBlur(m_float_arg);
else
m_rasterizer->DisableMotionBlur();
return false;
}
- else if(m_type < RAS_2DFilterManager::RAS_2DFILTER_NUMBER_OF_FILTERS)
+ else if (m_type < RAS_2DFilterManager::RAS_2DFILTER_NUMBER_OF_FILTERS)
{
m_scene->Update2DFilter(m_propNames, m_gameobj, m_type, m_int_arg, m_shaderText);
}
diff --git a/source/gameengine/GameLogic/SCA_ISensor.cpp b/source/gameengine/GameLogic/SCA_ISensor.cpp
index 09d81c7f14b..4728729acb0 100644
--- a/source/gameengine/GameLogic/SCA_ISensor.cpp
+++ b/source/gameengine/GameLogic/SCA_ISensor.cpp
@@ -174,7 +174,7 @@ void SCA_ISensor::RegisterToManager()
void SCA_ISensor::Replace_EventManager(class SCA_LogicManager* logicmgr)
{
- if(m_links) { /* true if we're used currently */
+ if (m_links) { /* true if we're used currently */
m_eventmgr->RemoveSensor(this);
m_eventmgr= logicmgr->FindEventManager(m_eventmgr->GetType());
@@ -225,7 +225,7 @@ void SCA_ISensor::UnregisterToManager()
void SCA_ISensor::ActivateControllers(class SCA_LogicManager* logicmgr)
{
- for(vector<SCA_IController*>::const_iterator c= m_linkedcontrollers.begin();
+ for (vector<SCA_IController*>::const_iterator c= m_linkedcontrollers.begin();
c!=m_linkedcontrollers.end();++c)
{
SCA_IController* contr = *c;
@@ -305,7 +305,7 @@ void SCA_ISensor::Activate(class SCA_LogicManager* logicmgr)
{
// This level sensor is connected to at least one controller that was just made
// active but it did not generate an event yet, do it now to those controllers only
- for(vector<SCA_IController*>::const_iterator c= m_linkedcontrollers.begin();
+ for (vector<SCA_IController*>::const_iterator c= m_linkedcontrollers.begin();
c!=m_linkedcontrollers.end();++c)
{
SCA_IController* contr = *c;
diff --git a/source/gameengine/GameLogic/SCA_JoystickManager.cpp b/source/gameengine/GameLogic/SCA_JoystickManager.cpp
index 2942384055b..c21db794e42 100644
--- a/source/gameengine/GameLogic/SCA_JoystickManager.cpp
+++ b/source/gameengine/GameLogic/SCA_JoystickManager.cpp
@@ -52,7 +52,7 @@ SCA_JoystickManager::~SCA_JoystickManager()
{
int i;
for (i=0; i<JOYINDEX_MAX; i++) {
- if(m_joystick[i])
+ if (m_joystick[i])
m_joystick[i]->ReleaseInstance();
}
}
@@ -72,7 +72,7 @@ void SCA_JoystickManager::NextFrame(double curtime,double deltatime)
for (it.begin();!it.end();++it)
{
SCA_JoystickSensor* joysensor = *it;
- if(!joysensor->IsSuspended())
+ if (!joysensor->IsSuspended())
{
joysensor->Activate(m_logicmgr);
}
diff --git a/source/gameengine/GameLogic/SCA_JoystickSensor.cpp b/source/gameengine/GameLogic/SCA_JoystickSensor.cpp
index 3f74b4cd807..2b47b6fb3c2 100644
--- a/source/gameengine/GameLogic/SCA_JoystickSensor.cpp
+++ b/source/gameengine/GameLogic/SCA_JoystickSensor.cpp
@@ -109,7 +109,7 @@ bool SCA_JoystickSensor::Evaluate()
bool result = false;
bool reset = m_reset && m_level;
- if(js==NULL) /* no joystick - don't do anything */
+ if (js==NULL) /* no joystick - don't do anything */
return false;
m_reset = false;
@@ -134,22 +134,22 @@ bool SCA_JoystickSensor::Evaluate()
js->cSetPrecision(m_precision);
if (m_bAllEvents) {
- if(js->aAxisPairIsPositive(m_axis-1)){ /* use zero based axis index internally */
+ if (js->aAxisPairIsPositive(m_axis-1)){ /* use zero based axis index internally */
m_istrig = 1;
result = true;
}else{
- if(m_istrig){
+ if (m_istrig){
m_istrig = 0;
result = true;
}
}
}
else {
- if(js->aAxisPairDirectionIsPositive(m_axis-1, m_axisf)){ /* use zero based axis index internally */
+ if (js->aAxisPairDirectionIsPositive(m_axis-1, m_axisf)){ /* use zero based axis index internally */
m_istrig = 1;
result = true;
}else{
- if(m_istrig){
+ if (m_istrig){
m_istrig = 0;
result = true;
}
@@ -165,11 +165,11 @@ bool SCA_JoystickSensor::Evaluate()
/* No need for 'm_bAllEvents' check here since were only checking 1 axis */
js->cSetPrecision(m_precision);
- if(js->aAxisIsPositive(m_axis-1)){ /* use zero based axis index internally */
+ if (js->aAxisIsPositive(m_axis-1)){ /* use zero based axis index internally */
m_istrig = 1;
result = true;
}else{
- if(m_istrig){
+ if (m_istrig){
m_istrig = 0;
result = true;
}
@@ -185,11 +185,11 @@ bool SCA_JoystickSensor::Evaluate()
if (!js->IsTrigButton() && !reset) /* No events from SDL? - don't bother */
return false;
- if(( m_bAllEvents && js->aAnyButtonPressIsPositive()) || (!m_bAllEvents && js->aButtonPressIsPositive(m_button))) {
+ if (( m_bAllEvents && js->aAnyButtonPressIsPositive()) || (!m_bAllEvents && js->aButtonPressIsPositive(m_button))) {
m_istrig = 1;
result = true;
}else {
- if(m_istrig){
+ if (m_istrig){
m_istrig = 0;
result = true;
}
@@ -206,11 +206,11 @@ bool SCA_JoystickSensor::Evaluate()
if (!js->IsTrigHat() && !reset) /* No events from SDL? - don't bother */
return false;
- if((m_bAllEvents && js->GetHat(m_hat-1)) || js->aHatIsPositive(m_hat-1, m_hatf)) {
+ if ((m_bAllEvents && js->GetHat(m_hat-1)) || js->aHatIsPositive(m_hat-1, m_hatf)) {
m_istrig = 1;
result = true;
}else{
- if(m_istrig){
+ if (m_istrig){
m_istrig = 0;
result = true;
}
@@ -310,7 +310,7 @@ PyObject* SCA_JoystickSensor::PyGetButtonActiveList( )
PyObject *value;
int i;
- if(joy) {
+ if (joy) {
for (i=0; i < joy->GetNumberOfButtons(); i++) {
if (joy->aButtonPressIsPositive(i)) {
value = PyLong_FromSsize_t(i);
@@ -331,10 +331,10 @@ PyObject* SCA_JoystickSensor::PyGetButtonStatus( PyObject* args )
SCA_Joystick *joy = ((SCA_JoystickManager *)m_eventmgr)->GetJoystickDevice(m_joyindex);
int index;
- if(!PyArg_ParseTuple(args, "i:getButtonStatus", &index)){
+ if (!PyArg_ParseTuple(args, "i:getButtonStatus", &index)){
return NULL;
}
- if(joy && index >= 0 && index < joy->GetNumberOfButtons()) {
+ if (joy && index >= 0 && index < joy->GetNumberOfButtons()) {
return PyBool_FromLong(joy->aButtonPressIsPositive(index) ? 1 : 0);
}
return PyBool_FromLong(0);
@@ -360,7 +360,7 @@ PyObject* SCA_JoystickSensor::pyattr_get_axis_single(void *self_v, const KX_PYAT
SCA_JoystickSensor* self= static_cast<SCA_JoystickSensor*>(self_v);
SCA_Joystick *joy = ((SCA_JoystickManager *)self->m_eventmgr)->GetJoystickDevice(self->m_joyindex);
- if(self->m_joymode != KX_JOYSENSORMODE_AXIS_SINGLE) {
+ if (self->m_joymode != KX_JOYSENSORMODE_AXIS_SINGLE) {
PyErr_SetString(PyExc_TypeError, "val = sensor.axisSingle: Joystick Sensor, not 'Single Axis' type");
return NULL;
}
diff --git a/source/gameengine/GameLogic/SCA_LogicManager.cpp b/source/gameengine/GameLogic/SCA_LogicManager.cpp
index c5346c16fc9..6543d16d469 100644
--- a/source/gameengine/GameLogic/SCA_LogicManager.cpp
+++ b/source/gameengine/GameLogic/SCA_LogicManager.cpp
@@ -189,11 +189,11 @@ void SCA_LogicManager::BeginFrame(double curtime, double fixedtime)
for (vector<SCA_EventManager*>::const_iterator ie=m_eventmanagers.begin(); !(ie==m_eventmanagers.end()); ie++)
(*ie)->NextFrame(curtime, fixedtime);
- for(SG_QList* obj = (SG_QList*)m_triggeredControllerSet.Remove();
+ for (SG_QList* obj = (SG_QList*)m_triggeredControllerSet.Remove();
obj != NULL;
obj = (SG_QList*)m_triggeredControllerSet.Remove())
{
- for(SCA_IController* contr = (SCA_IController*)obj->QRemove();
+ for (SCA_IController* contr = (SCA_IController*)obj->QRemove();
contr != NULL;
contr = (SCA_IController*)obj->QRemove())
{
diff --git a/source/gameengine/GameLogic/SCA_PropertySensor.cpp b/source/gameengine/GameLogic/SCA_PropertySensor.cpp
index 8e324bbb0d7..d0d940a2e42 100644
--- a/source/gameengine/GameLogic/SCA_PropertySensor.cpp
+++ b/source/gameengine/GameLogic/SCA_PropertySensor.cpp
@@ -198,10 +198,10 @@ bool SCA_PropertySensor::CheckPropertyCondition()
/* Patch: floating point values cant use strings usefully since you can have "0.0" == "0.0000"
* this could be made into a generic Value class function for comparing values with a string.
*/
- if(result==false && dynamic_cast<CFloatValue *>(orgprop) != NULL) {
+ if (result==false && dynamic_cast<CFloatValue *>(orgprop) != NULL) {
float f;
- if(EOF == sscanf(m_checkpropval.ReadPtr(), "%f", &f))
+ if (EOF == sscanf(m_checkpropval.ReadPtr(), "%f", &f))
{
//error
}
diff --git a/source/gameengine/GameLogic/SCA_PythonController.cpp b/source/gameengine/GameLogic/SCA_PythonController.cpp
index 67c813acdc0..6f1e6e31507 100644
--- a/source/gameengine/GameLogic/SCA_PythonController.cpp
+++ b/source/gameengine/GameLogic/SCA_PythonController.cpp
@@ -182,7 +182,7 @@ int SCA_PythonController::IsTriggered(class SCA_ISensor* sensor)
/* warning, self is not the SCA_PythonController, its a PyObjectPlus_Proxy */
PyObject* SCA_PythonController::sPyGetCurrentController(PyObject *self)
{
- if(m_sCurrentController==NULL)
+ if (m_sCurrentController==NULL)
{
PyErr_SetString(PyExc_SystemError, "bge.logic.getCurrentController(), this function is being run outside the python controllers context, or blenders internal state is corrupt.");
return NULL;
@@ -200,16 +200,16 @@ SCA_IActuator* SCA_PythonController::LinkedActuatorFromPy(PyObject *value)
if (PyUnicode_Check(value)) {
/* get the actuator from the name */
const char *name= _PyUnicode_AsString(value);
- for(it = lacts.begin(); it!= lacts.end(); ++it) {
- if( name == (*it)->GetName() ) {
+ for (it = lacts.begin(); it!= lacts.end(); ++it) {
+ if ( name == (*it)->GetName() ) {
return *it;
}
}
}
else if (PyObject_TypeCheck(value, &SCA_IActuator::Type)) {
PyObjectPlus *value_plus= BGE_PROXY_REF(value);
- for(it = lacts.begin(); it!= lacts.end(); ++it) {
- if( static_cast<SCA_IActuator*>(value_plus) == (*it) ) {
+ for (it = lacts.begin(); it!= lacts.end(); ++it) {
+ if ( static_cast<SCA_IActuator*>(value_plus) == (*it) ) {
return *it;
}
}
@@ -308,7 +308,7 @@ bool SCA_PythonController::Import()
function_string= strrchr(mod_path, '.');
- if(function_string == NULL) {
+ if (function_string == NULL) {
printf("Python module name formatting error in object '%s', controller '%s':\n\texpected 'SomeModule.Func', got '%s'\n", GetParent()->GetName().Ptr(), GetName().Ptr(), m_scriptText.Ptr());
return false;
}
@@ -324,7 +324,7 @@ bool SCA_PythonController::Import()
return false;
}
- if(m_debug)
+ if (m_debug)
mod = PyImport_ReloadModule(mod);
if (mod == NULL) {
@@ -338,15 +338,15 @@ bool SCA_PythonController::Import()
// DECREF the module as we don't need it anymore
Py_DECREF(mod);
- if(m_function==NULL) {
- if(PyErr_Occurred())
+ if (m_function==NULL) {
+ if (PyErr_Occurred())
ErrorPrint("Python controller found the module but could not access the function");
else
printf("Python module error in object '%s', controller '%s':\n '%s' module found but function missing\n", GetParent()->GetName().Ptr(), GetName().Ptr(), m_scriptText.Ptr());
return false;
}
- if(!PyCallable_Check(m_function)) {
+ if (!PyCallable_Check(m_function)) {
Py_DECREF(m_function);
m_function = NULL;
printf("Python module function error in object '%s', controller '%s':\n '%s' not callable\n", GetParent()->GetName().Ptr(), GetName().Ptr(), m_scriptText.Ptr());
@@ -358,7 +358,7 @@ bool SCA_PythonController::Import()
m_function_argc= ((PyCodeObject *)PyFunction_GET_CODE(m_function))->co_argcount;
}
- if(m_function_argc > 1) {
+ if (m_function_argc > 1) {
Py_DECREF(m_function);
m_function = NULL;
printf("Python module function in object '%s', controller '%s':\n '%s' takes %d args, should be zero or 1 controller arg\n", GetParent()->GetName().Ptr(), GetName().Ptr(), m_scriptText.Ptr(), m_function_argc);
@@ -421,7 +421,7 @@ void SCA_PythonController::Trigger(SCA_LogicManager* logicmgr)
PyObject *args= NULL;
- if(m_function_argc==1) {
+ if (m_function_argc==1) {
args = PyTuple_New(1);
PyTuple_SET_ITEM(args, 0, GetProxy());
}
@@ -441,7 +441,7 @@ void SCA_PythonController::Trigger(SCA_LogicManager* logicmgr)
else
ErrorPrint("Python script error");
- if(excdict) /* Only for SCA_PYEXEC_SCRIPT types */
+ if (excdict) /* Only for SCA_PYEXEC_SCRIPT types */
{
/* clear after PyErrPrint - seems it can be using
* something in this dictionary and crash? */
@@ -456,13 +456,13 @@ void SCA_PythonController::Trigger(SCA_LogicManager* logicmgr)
PyObject* SCA_PythonController::PyActivate(PyObject *value)
{
- if(m_sCurrentController != this) {
+ if (m_sCurrentController != this) {
PyErr_SetString(PyExc_SystemError, "Cannot add an actuator from a non-active controller");
return NULL;
}
SCA_IActuator* actu = LinkedActuatorFromPy(value);
- if(actu==NULL)
+ if (actu==NULL)
return NULL;
m_sCurrentLogicManager->AddActiveActuator((SCA_IActuator*)actu, true);
@@ -471,13 +471,13 @@ PyObject* SCA_PythonController::PyActivate(PyObject *value)
PyObject* SCA_PythonController::PyDeActivate(PyObject *value)
{
- if(m_sCurrentController != this) {
+ if (m_sCurrentController != this) {
PyErr_SetString(PyExc_SystemError, "Cannot add an actuator from a non-active controller");
return NULL;
}
SCA_IActuator* actu = LinkedActuatorFromPy(value);
- if(actu==NULL)
+ if (actu==NULL)
return NULL;
m_sCurrentLogicManager->AddActiveActuator((SCA_IActuator*)actu, false);
diff --git a/source/gameengine/GameLogic/SCA_RandomActuator.cpp b/source/gameengine/GameLogic/SCA_RandomActuator.cpp
index 0034b5b3f54..40dba3bf03a 100644
--- a/source/gameengine/GameLogic/SCA_RandomActuator.cpp
+++ b/source/gameengine/GameLogic/SCA_RandomActuator.cpp
@@ -392,7 +392,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setBoolConst,
"\tSet this generator to produce a constant boolean value.\n")
{
int paraArg;
- if(!PyArg_ParseTuple(args, "i:setBoolConst", &paraArg)) {
+ if (!PyArg_ParseTuple(args, "i:setBoolConst", &paraArg)) {
return NULL;
}
@@ -418,7 +418,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setBoolBernouilli,
"\tReturn false value * 100%% of the time.\n")
{
float paraArg;
- if(!PyArg_ParseTuple(args, "f:setBoolBernouilli", &paraArg)) {
+ if (!PyArg_ParseTuple(args, "f:setBoolBernouilli", &paraArg)) {
return NULL;
}
@@ -434,7 +434,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setIntConst,
"\tAlways return value\n")
{
int paraArg;
- if(!PyArg_ParseTuple(args, "i:setIntConst", &paraArg)) {
+ if (!PyArg_ParseTuple(args, "i:setIntConst", &paraArg)) {
return NULL;
}
@@ -452,7 +452,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setIntUniform,
"\tupper_bound. The boundaries are included.\n")
{
int paraArg1, paraArg2;
- if(!PyArg_ParseTuple(args, "ii:setIntUniform", &paraArg1, &paraArg2)) {
+ if (!PyArg_ParseTuple(args, "ii:setIntUniform", &paraArg1, &paraArg2)) {
return NULL;
}
@@ -471,7 +471,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setIntPoisson,
"\tnumber of tries needed to achieve succes.\n")
{
float paraArg;
- if(!PyArg_ParseTuple(args, "f:setIntPoisson", &paraArg)) {
+ if (!PyArg_ParseTuple(args, "f:setIntPoisson", &paraArg)) {
return NULL;
}
@@ -487,7 +487,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setFloatConst,
"\tAlways return value\n")
{
float paraArg;
- if(!PyArg_ParseTuple(args, "f:setFloatConst", &paraArg)) {
+ if (!PyArg_ParseTuple(args, "f:setFloatConst", &paraArg)) {
return NULL;
}
@@ -505,7 +505,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setFloatUniform,
"\tupper_bound.\n")
{
float paraArg1, paraArg2;
- if(!PyArg_ParseTuple(args, "ff:setFloatUniform", &paraArg1, &paraArg2)) {
+ if (!PyArg_ParseTuple(args, "ff:setFloatUniform", &paraArg1, &paraArg2)) {
return NULL;
}
@@ -524,7 +524,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setFloatNormal,
"\tdeviation from the mean is characterized by standard_deviation.\n")
{
float paraArg1, paraArg2;
- if(!PyArg_ParseTuple(args, "ff:setFloatNormal", &paraArg1, &paraArg2)) {
+ if (!PyArg_ParseTuple(args, "ff:setFloatNormal", &paraArg1, &paraArg2)) {
return NULL;
}
@@ -542,7 +542,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setFloatNegativeExponential,
"\tis characterized by half_life.\n")
{
float paraArg;
- if(!PyArg_ParseTuple(args, "f:setFloatNegativeExponential", &paraArg)) {
+ if (!PyArg_ParseTuple(args, "f:setFloatNegativeExponential", &paraArg)) {
return NULL;
}