- Arreglats un milló de warnings tontos (i alguno serio)
This commit is contained in:
@@ -112,14 +112,14 @@ namespace modules
|
||||
{
|
||||
int x = pixels[pixel].x - 25;
|
||||
int y = 3 - pixels[pixel].y;
|
||||
pixels[pixel].distance = sqrtf(x*x + y*y);
|
||||
pixels[pixel].angle = atan2f(y, x)/(M_PI/180.0f);
|
||||
pixels[pixel].distance = SDL_sqrtf(x*x + y*y);
|
||||
pixels[pixel].angle = SDL_atan2f(y, x)/(M_PI/180.0f);
|
||||
}
|
||||
|
||||
void calculate_coords_from_dist_angle(int pixel)
|
||||
{
|
||||
pixels[pixel].x = 25 + roundf(cosf((pixels[pixel].angle+pixels[pixel].ai)*(M_PI/180.0f)) * (pixels[pixel].distance*pixels[pixel].di));
|
||||
pixels[pixel].y = 3 - roundf(sinf((pixels[pixel].angle+pixels[pixel].ai)*(M_PI/180.0f)) * (pixels[pixel].distance*pixels[pixel].di));
|
||||
pixels[pixel].x = 25 + SDL_roundf(SDL_cosf((pixels[pixel].angle+pixels[pixel].ai)*(M_PI/180.0f)) * (pixels[pixel].distance*pixels[pixel].di));
|
||||
pixels[pixel].y = 3 - SDL_roundf(SDL_sinf((pixels[pixel].angle+pixels[pixel].ai)*(M_PI/180.0f)) * (pixels[pixel].distance*pixels[pixel].di));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user