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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ft_select_bad_boy_action.c b/src/ft_select_bad_boy_action.c
index 6b3d2ef..34e0efe 100644
--- a/src/ft_select_bad_boy_action.c
+++ b/src/ft_select_bad_boy_action.c
@@ -25,7 +25,10 @@ void
{
if (cl->bad_boy[i].sleep == 0 && cl->bad_boy[i].life > 0)
{
- r = rand() % 2;
+ if (FT_OS == 2)
+ r = random() % 2;
+ else
+ r = rand() % 2;
cl->bad_boy[i].act[r](&cl->bad_boy[i],
&cl->sprites[13][i], &cl->mlist);
cl->bad_boy[i].sleep = 1;