From 9f784e81f81651bed087902f9f3afee113e56148 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Tue, 19 Jun 2012 20:11:47 +0200 Subject: Switched to new implementation of the rest of math module - changed structs from D3DVECTOR to Math::Vector and from D3DMATRIX to Math::Matrix - changed functions to new Math namespace functions - moved mainmovie module from graphics to object - added Get and Set to Math::Matrix --- src/object/auto/autoflag.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/object/auto/autoflag.cpp') diff --git a/src/object/auto/autoflag.cpp b/src/object/auto/autoflag.cpp index c75f914..b6497eb 100644 --- a/src/object/auto/autoflag.cpp +++ b/src/object/auto/autoflag.cpp @@ -73,7 +73,7 @@ void CAutoFlag::DeleteObject(bool bAll) void CAutoFlag::Init() { - D3DVECTOR wind; + Math::Vector wind; float angle; m_time = 0.0f; @@ -84,7 +84,7 @@ void CAutoFlag::Init() angle = Math::RotateAngle(wind.x, -wind.z); m_object->SetAngleY(0, angle); // directs the flag in the wind - m_strong = Length(wind); + m_strong = wind.Length(); } -- cgit v1.2.3-1-g7c22