diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 14:47:33 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 14:47:33 +0100 |
commit | 8866ef5699150d0549096efa94fc311ff7a48dc7 (patch) | |
tree | 4a03267f7e7f9b399a9ad0536b50ba6a90407e47 /src/ft_get_res.c | |
parent | Music is pretty bav (diff) | |
download | 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.gz 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.bz2 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.xz 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.zst 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.zip |
Changing stuff
Diffstat (limited to 'src/ft_get_res.c')
-rw-r--r-- | src/ft_get_res.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/ft_get_res.c b/src/ft_get_res.c index aa1bec4..8b86cea 100644 --- a/src/ft_get_res.c +++ b/src/ft_get_res.c @@ -24,7 +24,7 @@ static int8_t i++; if (i != ft_strlen(word)) { - ft_sprintf(clist->errmsg, FT_ERR_RES_ALPHA); + ft_sprintf(clist.errmsg, FT_ERR_RES_ALPHA); return (-1); } return (0); @@ -33,10 +33,10 @@ static int8_t static void ft_securize_scr(t_win *wl) { - while (wl->x_size % 10) - wl->x_size -= 1; - while (wl->y_size % 10) - wl->y_size -= 1; + while (wl.x_size % 10) + wl.x_size -= 1; + while (wl.y_size % 10) + wl.y_size -= 1; } static int8_t @@ -45,7 +45,7 @@ static int8_t if (!(*words + 0) || !(*(words + 1)) || !(*(words + 2)) || (*(words + 3))) { - ft_sprintf(clist->errmsg, FT_ERR_ARGS); + ft_sprintf(clist.errmsg, FT_ERR_ARGS); return (-1); } return (0); @@ -56,20 +56,20 @@ int8_t { t_win *wlist; - wlist = clist->wlist; - if (clist->currlvl > 0) + wlist = clist.wlist; + if (clist.currlvl > 0) return (0); if (ft_check_res_args(words, clist) < 0) return (-1); if ((ft_checkdigit(words[1], clist) < 0) || (ft_checkdigit(words[2], clist) < 0)) return (-1); - wlist->x_size = ft_atoi(words[1]); - wlist->y_size = ft_atoi(words[2]); - if (wlist->x_size <= 10 - || wlist->y_size <= 10) + wlist.x_size = ft_atoi(words[1]); + wlist.y_size = ft_atoi(words[2]); + if (wlist.x_size <= 10 + || wlist.y_size <= 10) { - ft_sprintf(clist->errmsg, FT_ERR_RES_SMALL); + ft_sprintf(clist.errmsg, FT_ERR_RES_SMALL); return (-1); } if (ft_get_screen_size(wlist) < 0) |