diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-22 19:05:12 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-22 19:05:12 +0100 |
commit | 7fbd59391bee9d23543ce933e91312e75276db8a (patch) | |
tree | 268db5130a3a62ce706cd8e222b6e47a61f2edb8 /src/ft_get_weapon_spawn.c | |
parent | new colors for font (diff) | |
download | 42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.gz 42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.bz2 42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.xz 42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.tar.zst 42-cub3d-7fbd59391bee9d23543ce933e91312e75276db8a.zip |
Now regimp and sound
Diffstat (limited to 'src/ft_get_weapon_spawn.c')
-rw-r--r-- | src/ft_get_weapon_spawn.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ft_get_weapon_spawn.c b/src/ft_get_weapon_spawn.c index a54d2b6..1ed4c7d 100644 --- a/src/ft_get_weapon_spawn.c +++ b/src/ft_get_weapon_spawn.c @@ -22,8 +22,10 @@ static void { if (id == 0) ft_map_error(FT_ERR_TOO_MUCH_W_ONE, clist); - else + else if (id == 1) ft_map_error(FT_ERR_TOO_MUCH_W_TWO, clist); + else + ft_map_error(FT_ERR_TOO_MUCH_W_THREE, clist); } clist->weaps[id][0].s_pos_x = x; clist->weaps[id][0].s_pos_y = y; @@ -47,6 +49,8 @@ void ft_get_weapon_id_spawn(0, y, x, clist); else if (clist->mlist.map[y][x] == '@') ft_get_weapon_id_spawn(1, y, x, clist); + else if (clist->mlist.map[y][x] == '#') + ft_get_weapon_id_spawn(2, y, x, clist); x++; } x = 1; |