aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_bad_boy_actions.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-15 16:54:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-15 16:54:12 +0200
commiteff45a482b40ddb5857adce9f6740282b04ab4a2 (patch)
tree213399609d267cbb1b376161e0297d6ee709ab8f /src/ft_bad_boy_actions.c
parentNow BSD compliant (diff)
download42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.gz
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.bz2
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.xz
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.zst
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.zip
Pretty compliant but mutex problems
Diffstat (limited to 'src/ft_bad_boy_actions.c')
-rw-r--r--src/ft_bad_boy_actions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_bad_boy_actions.c b/src/ft_bad_boy_actions.c
index 26d294b..fb2cdb7 100644
--- a/src/ft_bad_boy_actions.c
+++ b/src/ft_bad_boy_actions.c
@@ -73,10 +73,10 @@ void
i = 0;
while (i < cl->mlist.sprite_nbr[13])
{
- if (FT_OS == 1)
- r = rand() % 4;
- else
+ if (FT_OS == 2)
r = random() % 4;
+ else
+ r = rand() % 4;
if (cl->bad_boy[i].does == 2 && cl->bad_boy[i].sleep == 0)
{
cl->sfx[15].sfx_play(cl->sfx);