diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 20:26:03 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 20:26:03 +0100 |
commit | 3d5d770c0f43f9b4cfe59dc694f78b18803a7872 (patch) | |
tree | ae25b98e1dd04a82d9b44aea0649e4df5cd6dc45 /src/ft_select_get.c | |
parent | Now better handling (diff) | |
download | 42-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.c | 2 |
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++; |