From 04fe91c871e37bfcc9d10ab5776a3a32622c2619 Mon Sep 17 00:00:00 2001 From: GreYFoXGTi Date: Wed, 22 Sep 2010 12:58:38 +0300 Subject: [PATCH] Fixed GetPos Removed Variable Declared but never used Signed-off-by: GreYFoXGTi --- src/game/collision.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/collision.cpp b/src/game/collision.cpp index 6112dfe43..5f11c1a0f 100644 --- a/src/game/collision.cpp +++ b/src/game/collision.cpp @@ -99,7 +99,6 @@ void CCollision::Init(class CLayers *pLayers) int CCollision::GetMapIndex(vec2 PrevPos, vec2 Pos) { - int Index = 0; float d = distance(PrevPos, Pos); if(!d) @@ -151,7 +150,7 @@ vec2 CCollision::GetPos(int Index) int x = Index%m_Width; int y = Index/m_Width; - return vec2(x, y); + return vec2(16+x*32, 16+y*32); } int CCollision::GetCollisionDDRace(int Index)