diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_get_player_spawn.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/ft_get_player_spawn.c b/src/ft_get_player_spawn.c index 617ec22..a4e94ea 100644 --- a/src/ft_get_player_spawn.c +++ b/src/ft_get_player_spawn.c @@ -21,21 +21,21 @@ static void float sav_dir_x; float sav_plane_x; - sav_dir_x = pl->dir_x; - pl->dir_x = -pl->dir_y; - pl->dir_y = sav_dir_x; - sav_plane_x = pl->plane_x; - pl->plane_x = -pl->plane_y; - pl->plane_y = sav_plane_x; + sav_dir_x = pl.dir_x; + pl.dir_x = -pl.dir_y; + pl.dir_y = sav_dir_x; + sav_plane_x = pl.plane_x; + pl.plane_x = -pl.plane_y; + pl.plane_y = sav_plane_x; } static void ft_get_s_dir(t_player *pl) { - pl->dir_x = -pl->dir_x; - pl->dir_y = -pl->dir_y; - pl->plane_x = -pl->plane_x; - pl->plane_y = -pl->plane_y; + pl.dir_x = -pl.dir_x; + pl.dir_y = -pl.dir_y; + pl.plane_x = -pl.plane_x; + pl.plane_y = -pl.plane_y; } static void @@ -44,12 +44,12 @@ static void float sav_dir_x; float sav_plane_x; - sav_dir_x = pl->dir_x; - pl->dir_x = pl->dir_y; - pl->dir_y = -sav_dir_x; - sav_plane_x = pl->plane_x; - pl->plane_x = pl->plane_y; - pl->plane_y = -sav_plane_x; + sav_dir_x = pl.dir_x; + pl.dir_x = pl.dir_y; + pl.dir_y = -sav_dir_x; + sav_plane_x = pl.plane_x; + pl.plane_x = pl.plane_y; + pl.plane_y = -sav_plane_x; } static void @@ -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); + 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); return ; } x++; |