aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_select_bad_boy_action.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-31 14:29:18 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-31 14:29:18 +0200
commit137397e014be24d48ccc60e36af21ffc25229b77 (patch)
tree4cc7e8a39c7b92756efceea8ea155d5de29317f3 /src/ft_select_bad_boy_action.c
parentNigga ain't gonna stop shootin me (diff)
download42-cub3d-137397e014be24d48ccc60e36af21ffc25229b77.tar.gz
42-cub3d-137397e014be24d48ccc60e36af21ffc25229b77.tar.bz2
42-cub3d-137397e014be24d48ccc60e36af21ffc25229b77.tar.xz
42-cub3d-137397e014be24d48ccc60e36af21ffc25229b77.tar.zst
42-cub3d-137397e014be24d48ccc60e36af21ffc25229b77.zip
Fixed that gangsta
Diffstat (limited to '')
-rw-r--r--src/ft_select_bad_boy_action.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_select_bad_boy_action.c b/src/ft_select_bad_boy_action.c
index db75208..73b3f9a 100644
--- a/src/ft_select_bad_boy_action.c
+++ b/src/ft_select_bad_boy_action.c
@@ -27,7 +27,7 @@
** I. player is not in sight
** rand(0-3) | [0-2] wait | [3] walk
** II. player is in sight
-** rand(0-7) | [0-1] wait | [2-3] walk | [4-7] fire
+** rand(0-7) | [0-1] wait | [2] walk | [3-7] fire
*/
static double
@@ -64,7 +64,7 @@ static int8_t
r = rand() % 8;
if (r <= 1)
return (0);
- else if (r >= 2 && r <= 3)
+ else if (r == 2)
return (1);
else
return (2);