summaryrefslogtreecommitdiffstats
path: root/src/object/auto/autoflag.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-19 20:11:47 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-19 20:11:47 +0200
commit9f784e81f81651bed087902f9f3afee113e56148 (patch)
treeae89f6dabe2443b39aba292673027d197fc120e6 /src/object/auto/autoflag.cpp
parentb8027ce9a7f050b95846a668a02f5801331e127f (diff)
downloadcolobot-9f784e81f81651bed087902f9f3afee113e56148.tar.gz
colobot-9f784e81f81651bed087902f9f3afee113e56148.tar.bz2
colobot-9f784e81f81651bed087902f9f3afee113e56148.zip
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
Diffstat (limited to 'src/object/auto/autoflag.cpp')
-rw-r--r--src/object/auto/autoflag.cpp4
1 files changed, 2 insertions, 2 deletions
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();
}