diff options
author | salaaad2 <arthudurant263@gmail.com> | 2020-02-20 18:08:30 +0100 |
---|---|---|
committer | salaaad2 <arthudurant263@gmail.com> | 2020-02-20 18:08:30 +0100 |
commit | 375321cf6cdbcf1e062a0ada0efc4c94119141cb (patch) | |
tree | f5b94eeb0f25c0a661ebf242b16d064baad2b8f2 /src/ft_draw_circle.c | |
parent | Fixed HEAD conflicts, pretty bav (diff) | |
download | 42-cub3d-375321cf6cdbcf1e062a0ada0efc4c94119141cb.tar.gz 42-cub3d-375321cf6cdbcf1e062a0ada0efc4c94119141cb.tar.bz2 42-cub3d-375321cf6cdbcf1e062a0ada0efc4c94119141cb.tar.xz 42-cub3d-375321cf6cdbcf1e062a0ada0efc4c94119141cb.tar.zst 42-cub3d-375321cf6cdbcf1e062a0ada0efc4c94119141cb.zip |
new map, play the game !!!!!
Diffstat (limited to '')
-rw-r--r-- | src/ft_draw_circle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_circle.c b/src/ft_draw_circle.c index 3e17dfa..be95617 100644 --- a/src/ft_draw_circle.c +++ b/src/ft_draw_circle.c @@ -31,8 +31,8 @@ void while (i < 360) { angle = i; - x1 = scale * cos(angle * M_PI / 180); - y1 = scale * sin(angle * M_PI / 180); + x1 = scale * cos(angle * 3.14159 / 180); + y1 = scale * sin(angle * 3.14159 / 180); *(int*)(cl->img.ptr + (a + (int)x1) * 4 + ((b + (int)y1) * cl->img.sizeline)) = color; i += 0.1; |