aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_select_get.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 20:26:03 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 20:26:03 +0100
commit3d5d770c0f43f9b4cfe59dc694f78b18803a7872 (patch)
treeae25b98e1dd04a82d9b44aea0649e4df5cd6dc45 /src/ft_select_get.c
parentNow better handling (diff)
download42-cub3d-3d5d770c0f43f9b4cfe59dc694f78b18803a7872.tar.gz
42-cub3d-3d5d770c0f43f9b4cfe59dc694f78b18803a7872.tar.bz2
42-cub3d-3d5d770c0f43f9b4cfe59dc694f78b18803a7872.tar.xz
42-cub3d-3d5d770c0f43f9b4cfe59dc694f78b18803a7872.tar.zst
42-cub3d-3d5d770c0f43f9b4cfe59dc694f78b18803a7872.zip
Changing stuff
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r--src/ft_select_get.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c
index 124c208..c73ed06 100644
--- a/src/ft_select_get.c
+++ b/src/ft_select_get.c
@@ -74,6 +74,8 @@ static int8_t
ft_sprintf(ref[9], "LT");
ft_sprintf(ref[10], "MU");
ft_sprintf(ref[11], "");
+ if (words[0][0] == ' ' || words[0][0] == '1')
+ return (12);
ret = 0;
while (ft_strncmp(words[0], ref[ret], 3) && ref[ret][0])
ret++;