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:
authorCampbell Barton <ideasman42@gmail.com>2012-10-21 11:58:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-21 11:58:38 +0400
commitd599b643b7a1882ea79851e334d7ed133f362bb3 (patch)
tree4e4640c1b2e7cc82d9db81dbd98a39777dcbce7c /source/gameengine/Converter/KX_ConvertSensors.cpp
parentf3ece5a108db0bdbefb4663ef4ebd9a7e039e263 (diff)
style cleanup: bge, switch statements mostly.
also left bmesh decimator on in previous commit.
Diffstat (limited to 'source/gameengine/Converter/KX_ConvertSensors.cpp')
-rw-r--r--source/gameengine/Converter/KX_ConvertSensors.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/gameengine/Converter/KX_ConvertSensors.cpp b/source/gameengine/Converter/KX_ConvertSensors.cpp
index 859257e192d..d3d3256312e 100644
--- a/source/gameengine/Converter/KX_ConvertSensors.cpp
+++ b/source/gameengine/Converter/KX_ConvertSensors.cpp
@@ -118,8 +118,8 @@ void BL_ConvertSensors(struct Object* blenderobject,
}
gameobj->ReserveSensor(count);
sens = (bSensor*)blenderobject->sensors.first;
- while(sens)
- {
+
+ while (sens) {
SCA_ISensor* gamesensor=NULL;
/* All sensors have a pulse toggle, frequency, and invert field. */
/* These are extracted here, and set when the sensor is added to the */
@@ -398,7 +398,7 @@ void BL_ConvertSensors(struct Object* blenderobject,
/* Better do an explicit conversion here! (was implicit */
/* before...) */
- switch(blenderpropsensor->type) {
+ switch (blenderpropsensor->type) {
case SENS_PROP_EQUAL:
propchecktype = SCA_PropertySensor::KX_PROPSENSOR_EQUAL;
break;
@@ -573,8 +573,7 @@ void BL_ConvertSensors(struct Object* blenderobject,
int hatf =0;
int prec =0;
- switch(bjoy->type)
- {
+ switch (bjoy->type) {
case SENS_JOY_AXIS:
axis = bjoy->axis;
axisf = bjoy->axisf;