From 6e27f12e8f780a82f114b42088973363f9a896ff Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 30 Mar 2020 18:24:38 +0200 Subject: Pretty coolio --- src/ft_select_bad_boy_action.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ft_select_bad_boy_action.c') 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; -- cgit v1.2.3