aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_colors.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-05 17:26:10 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-05 17:26:10 +0100
commit08dce587032f08c5bfbc2790bdb2d668ca1990c1 (patch)
treea927bf674dfa6d1d3efd03ef06dfacb115ae238f /src/ft_get_colors.c
parentmap fix (diff)
download42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.tar.gz
42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.tar.bz2
42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.tar.xz
42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.tar.zst
42-cub3d-08dce587032f08c5bfbc2790bdb2d668ca1990c1.zip
int16_tamer
Diffstat (limited to 'src/ft_get_colors.c')
-rw-r--r--src/ft_get_colors.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/ft_get_colors.c b/src/ft_get_colors.c
index 249ff5a..52461ea 100644
--- a/src/ft_get_colors.c
+++ b/src/ft_get_colors.c
@@ -45,12 +45,6 @@ int8_t
ft_free_words(num);
return (-1);
}
- clist->f_color = ft_atoi(num[0]);
- clist->f_color *= 1000;
- clist->f_color += ft_atoi(num[1]);
- clist->f_color *= 1000;
- clist->f_color += ft_atoi(num[2]);
-
clist->f_rgb.r = ft_atoi(num[0]);
clist->f_rgb.g = ft_atoi(num[1]);
clist->f_rgb.b = ft_atoi(num[2]);
@@ -75,12 +69,6 @@ int8_t
ft_free_words(num);
return (-1);
}
- clist->c_color = ft_atoi(num[0]);
- clist->c_color *= 1000;
- clist->c_color += ft_atoi(num[1]);
- clist->c_color *= 1000;
- clist->c_color += ft_atoi(num[2]);
-
clist->c_rgb.r = ft_atoi(num[0]);
clist->c_rgb.g = ft_atoi(num[1]);
clist->c_rgb.b = ft_atoi(num[2]);