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/script/dd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/dd.cpp') diff --git a/src/script/dd.cpp b/src/script/dd.cpp index b9d5f2f..4c7095e 100644 --- a/src/script/dd.cpp +++ b/src/script/dd.cpp @@ -44,7 +44,7 @@ int cPoint(CBotVar* &var, CBotString& retClass, void* user) // Gives a parameter of type "point". -bool GetPoint(CBotVar* &var, int& exception, D3DVECTOR& pos) +bool GetPoint(CBotVar* &var, int& exception, Math::Vector& pos) { CBotVar *pX, *pY, *pZ; @@ -124,7 +124,7 @@ bool rSpace(CBotVar* var, CBotVar* result, int& exception, void* user) CScript* script = ((CObject*)user)->RetRunScript(); CObject* pThis = (CObject*)user; CBotVar* pSub; - D3DVECTOR center; + Math::Vector center; float rMin, rMax, dist; rMin = 5.0f*UNIT; -- cgit v1.2.3-1-g7c22