mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
Fixed some warnings
This commit is contained in:
parent
f901fc65fa
commit
ec7c64ac0b
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue