From 33a5a937281082a572b3b66483e8a4579db2935d Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Thu, 5 Apr 2012 22:23:14 +0200 Subject: GCC include and syntax fixes --- src/motionhuman.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/motionhuman.cpp') 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 #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); -- cgit v1.2.3-1-g7c22