mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Fixed GetPos
Removed Variable Declared but never used Signed-off-by: GreYFoXGTi <GreYFoXGTi@GMaiL.CoM>
This commit is contained in:
parent
e56b75090c
commit
04fe91c871
|
@ -99,7 +99,6 @@ void CCollision::Init(class CLayers *pLayers)
|
||||||
|
|
||||||
int CCollision::GetMapIndex(vec2 PrevPos, vec2 Pos)
|
int CCollision::GetMapIndex(vec2 PrevPos, vec2 Pos)
|
||||||
{
|
{
|
||||||
int Index = 0;
|
|
||||||
float d = distance(PrevPos, Pos);
|
float d = distance(PrevPos, Pos);
|
||||||
|
|
||||||
if(!d)
|
if(!d)
|
||||||
|
@ -151,7 +150,7 @@ vec2 CCollision::GetPos(int Index)
|
||||||
int x = Index%m_Width;
|
int x = Index%m_Width;
|
||||||
int y = 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)
|
int CCollision::GetCollisionDDRace(int Index)
|
||||||
|
|
Loading…
Reference in a new issue