diff options
author | Rudy Bousset <rbousset@z3r8p1.le-101.fr> | 2020-02-13 19:42:05 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z3r8p1.le-101.fr> | 2020-02-13 19:42:05 +0100 |
commit | e29dd2fa3688e1e96a25af3b651da574af08aa90 (patch) | |
tree | cb6486fc91f1b93e61e4dcda25d359095e6aa108 /src/ft_get_player_spawn.c | |
parent | Better code structure (diff) | |
download | 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.gz 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.bz2 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.xz 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.zst 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.zip |
Splited structs
Diffstat (limited to 'src/ft_get_player_spawn.c')
-rw-r--r-- | src/ft_get_player_spawn.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_get_player_spawn.c b/src/ft_get_player_spawn.c index cc41955..b803f25 100644 --- a/src/ft_get_player_spawn.c +++ b/src/ft_get_player_spawn.c @@ -37,15 +37,15 @@ void x = 1; y = 1; - while (clist->map[y]) + while (clist->mlist->map[y]) { - while (clist->map[y][x]) + while (clist->mlist->map[y][x]) { - if (ft_ischarset("NSEW", clist->map[y][x])) + if (ft_ischarset("NSEW", clist->mlist->map[y][x])) { plist->pos_x = x; plist->pos_y = y; - plist->view_side = ft_get_view_side(clist->map[y][x]); + plist->view_side = ft_get_view_side(clist->mlist->map[y][x]); return ; } x++; |