aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_player_spawn.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 16:57:36 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 16:57:36 +0100
commitd4f853942aa2031c4bd85539ef9f3470967ffdc5 (patch)
treed2c5ffb0027860722185bf26b526757360ff1584 /src/ft_get_player_spawn.c
parenttweaks (diff)
parentGoing full stack is bav (diff)
download42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.gz
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.bz2
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.xz
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.zst
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.zip
Merge branch 'bmp'
Diffstat (limited to '')
-rw-r--r--src/ft_get_player_spawn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_get_player_spawn.c b/src/ft_get_player_spawn.c
index 617ec22..fabcba8 100644
--- a/src/ft_get_player_spawn.c
+++ b/src/ft_get_player_spawn.c
@@ -71,17 +71,17 @@ void
x = 1;
y = 1;
- while (clist->mlist->map[y])
+ while (clist->mlist.map[y])
{
- while (clist->mlist->map[y][x])
+ while (clist->mlist.map[y][x])
{
- if (ft_ischarset("NSEW", clist->mlist->map[y][x]))
+ if (ft_ischarset("NSEW", clist->mlist.map[y][x]))
{
plist->pos_x = x + 0.5;
plist->pos_y = y + 0.5;
plist->start_x = plist->pos_x;
plist->start_y = plist->pos_y;
- ft_get_start_side(clist->mlist->map[y][x], clist->plist);
+ ft_get_start_side(clist->mlist.map[y][x], plist);
return ;
}
x++;