diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 18:24:38 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 18:24:38 +0200 |
commit | 6e27f12e8f780a82f114b42088973363f9a896ff (patch) | |
tree | ca69f8e50c30e2bc41c3e8bdf9aa2ee5b1a77e0e /src/ft_select_bad_boy_action.c | |
parent | It's moving! (diff) | |
download | 42-cub3d-6e27f12e8f780a82f114b42088973363f9a896ff.tar.gz 42-cub3d-6e27f12e8f780a82f114b42088973363f9a896ff.tar.bz2 42-cub3d-6e27f12e8f780a82f114b42088973363f9a896ff.tar.xz 42-cub3d-6e27f12e8f780a82f114b42088973363f9a896ff.tar.zst 42-cub3d-6e27f12e8f780a82f114b42088973363f9a896ff.zip |
Pretty coolio
Diffstat (limited to 'src/ft_select_bad_boy_action.c')
-rw-r--r-- | src/ft_select_bad_boy_action.c | 5 |
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; |