diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-19 20:11:47 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-19 20:11:47 +0200 |
commit | 9f784e81f81651bed087902f9f3afee113e56148 (patch) | |
tree | ae89f6dabe2443b39aba292673027d197fc120e6 /src/object/auto/autorepair.cpp | |
parent | b8027ce9a7f050b95846a668a02f5801331e127f (diff) | |
download | colobot-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/autorepair.cpp')
-rw-r--r-- | src/object/auto/autorepair.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object/auto/autorepair.cpp b/src/object/auto/autorepair.cpp index 79bccc8..fdfb072 100644 --- a/src/object/auto/autorepair.cpp +++ b/src/object/auto/autorepair.cpp @@ -90,7 +90,7 @@ void CAutoRepair::Init() bool CAutoRepair::EventProcess(const Event &event)
{
CObject* vehicule;
- D3DVECTOR pos, speed;
+ Math::Vector pos, speed;
Math::Point dim;
float angle, shield;
@@ -247,7 +247,7 @@ CObject* CAutoRepair::SearchVehicle() {
CObject* pObj;
CPhysics* physics;
- D3DVECTOR sPos, oPos;
+ Math::Vector sPos, oPos;
ObjectType type;
float dist;
int i;
@@ -292,7 +292,7 @@ CObject* CAutoRepair::SearchVehicle() if ( physics != 0 && !physics->RetLand() ) continue; // in flight?
oPos = pObj->RetPosition(0);
- dist = Length(oPos, sPos);
+ dist = Math::Distance(oPos, sPos);
if ( dist <= 5.0f ) return pObj;
}
|