Fixed some warnings

This commit is contained in:
GreYFoXGTi 2011-02-05 06:23:56 +02:00
parent f901fc65fa
commit ec7c64ac0b

View file

@ -196,8 +196,8 @@ int CCollision::IntersectLine(vec2 Pos0, vec2 Pos1, vec2 *pOutCollision, vec2 *p
float d = distance(Pos0, Pos1); float d = distance(Pos0, Pos1);
int End(d+1); int End(d+1);
vec2 Last = Pos0; vec2 Last = Pos0;
int ix, iy; // Temporary position for checking collision int ix = 0, iy = 0; // Temporary position for checking collision
int dx, dy; // Offset for checking the "through" tile int dx = 0, dy = 0; // Offset for checking the "through" tile
if (AllowThrough) if (AllowThrough)
{ {
ThroughOffset(Pos0, Pos1, &dx, &dy); ThroughOffset(Pos0, Pos1, &dx, &dy);