diff options
author | Joerg Mueller <nexyon@gmail.com> | 2011-06-14 16:06:21 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2011-06-14 16:06:21 +0400 |
commit | 8ff0c2e10720bd6e583a6b133b75e7bdff27a5f8 (patch) | |
tree | 9c7e15d27d1b53af6ee9f428c9db7d855f013807 /source/gameengine/Converter/KX_ConvertActuators.cpp | |
parent | 7272bb643c379986c7332a994ce9e576d3b8a748 (diff) | |
parent | 23e2bfed239256994a6daf2ca5a08298e7029681 (diff) |
Merge with trunk r37475.
Diffstat (limited to 'source/gameengine/Converter/KX_ConvertActuators.cpp')
-rw-r--r-- | source/gameengine/Converter/KX_ConvertActuators.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/gameengine/Converter/KX_ConvertActuators.cpp b/source/gameengine/Converter/KX_ConvertActuators.cpp index 7bd51fef9f0..1a8368a12fa 100644 --- a/source/gameengine/Converter/KX_ConvertActuators.cpp +++ b/source/gameengine/Converter/KX_ConvertActuators.cpp @@ -77,6 +77,7 @@ /* This little block needed for linking to Blender... */ #include "BKE_text.h" #include "BLI_blenlib.h" +#include "BLI_math_base.h" #define FILE_MAX 240 // repeated here to avoid dependency from BKE_utildefines.h @@ -283,7 +284,8 @@ void BL_ConvertActuators(char* maggiename, camact->height, camact->min, camact->max, - camact->axis=='x'); + camact->axis=='x', + camact->damping); baseact = tmpcamact; } break; @@ -394,7 +396,7 @@ void BL_ConvertActuators(char* maggiename, new KX_SoundActuator(gameobj, snd_sound, soundact->volume, - (float)(exp((soundact->pitch / 12.0) * log(2.0))), + (float)(exp((soundact->pitch / 12.0) * M_LN2)), is3d, settings, soundActuatorType); |