diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 14:47:33 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 14:47:33 +0100 |
commit | 8866ef5699150d0549096efa94fc311ff7a48dc7 (patch) | |
tree | 4a03267f7e7f9b399a9ad0536b50ba6a90407e47 /src/ft_get_player_spawn.c | |
parent | Music is pretty bav (diff) | |
download | 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.gz 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.bz2 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.xz 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.zst 42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.zip |
Changing stuff
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++; |