added fix for intersectline by Speedy-Consoles. #1205

This commit is contained in:
oy 2016-12-18 11:11:55 +01:00
parent 3deb58d409
commit 720874f831

View file

@ -71,7 +71,7 @@ int CCollision::IntersectLine(vec2 Pos0, vec2 Pos1, vec2 *pOutCollision, vec2 *p
int End(Distance+1);
vec2 Last = Pos0;
for(int i = 0; i < End; i++)
for(int i = 0; i <= End; i++)
{
float a = i/float(End);
vec2 Pos = mix(Pos0, Pos1, a);