mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fixed some warnings
This commit is contained in:
parent
f901fc65fa
commit
ec7c64ac0b
|
@ -196,11 +196,11 @@ int CCollision::IntersectLine(vec2 Pos0, vec2 Pos1, vec2 *pOutCollision, vec2 *p
|
|||
float d = distance(Pos0, Pos1);
|
||||
int End(d+1);
|
||||
vec2 Last = Pos0;
|
||||
int ix, iy; // Temporary position for checking collision
|
||||
int dx, dy; // Offset for checking the "through" tile
|
||||
int ix = 0, iy = 0; // Temporary position for checking collision
|
||||
int dx = 0, dy = 0; // Offset for checking the "through" tile
|
||||
if (AllowThrough)
|
||||
{
|
||||
ThroughOffset(Pos0, Pos1, &dx, &dy);
|
||||
ThroughOffset(Pos0, Pos1, &dx, &dy);
|
||||
}
|
||||
for(int i = 0; i < End; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue