fix some warnings

Removed homebrew round() - now we just use the math library.
This commit is contained in:
ac-stef
2015-08-03 20:57:50 +02:00
parent 826499c12d
commit 50d1413d5c
6 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ void computeraytable(float vx, float vy, float fov)
{
float dist = (float)(fabs(sx-vx)+fabs(sy-vy));
if(firstquarter || dist > rdist[k]) rdist[k] = dist;
if(firstquarter) ndist[k] = max(abs(sx-vx), abs(sy-vy));
if(firstquarter) ndist[k] = max(abs(int(sx-vx)), abs(int(sy-vy)));
break;
}
}