aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_select_bad_boy_action.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_select_bad_boy_action.c')
-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);