summaryrefslogtreecommitdiffstats
path: root/src/motionhuman.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-04-05 22:23:14 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-04-05 22:23:14 +0200
commit33a5a937281082a572b3b66483e8a4579db2935d (patch)
tree6ace6c1902e9956d25d3efbe32588a848a6a6959 /src/motionhuman.cpp
parentc2b493259d584a0eeef62181836d2606acb18f8b (diff)
downloadcolobot-33a5a937281082a572b3b66483e8a4579db2935d.tar.gz
colobot-33a5a937281082a572b3b66483e8a4579db2935d.tar.bz2
colobot-33a5a937281082a572b3b66483e8a4579db2935d.zip
GCC include and syntax fixes
Diffstat (limited to 'src/motionhuman.cpp')
-rw-r--r--src/motionhuman.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/motionhuman.cpp b/src/motionhuman.cpp
index 4e122d1..78750fa 100644
--- a/src/motionhuman.cpp
+++ b/src/motionhuman.cpp
@@ -24,7 +24,7 @@
#include <d3d.h>
#include "struct.h"
-#include "D3DEngine.h"
+#include "d3dengine.h"
#include "math3d.h"
#include "event.h"
#include "misc.h"
@@ -1516,7 +1516,8 @@ BOOL CMotionHuman::EventFrame(const Event &event)
SetInclinaison(dir);
//? dir.x = -(sinf(time*0.05f+PI*1.5f)+1.0f)*100.0f;
- dir.x = -(powf(Min(time/30.0f), 4.0f))*1000.0f; // from the distance
+ // original code: Min(time/30.0f) (?) changed to time/30.0f
+ dir.x = -(powf(time/30.0f, 4.0f))*1000.0f; // from the distance
dir.y = 0.0f;
dir.z = 0.0f;
m_object->SetLinVibration(dir);