fix some warnings
Removed homebrew round() - now we just use the math library.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user