diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-14 23:14:29 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-14 23:14:29 +0100 |
commit | d94b7a155935bb09dc9cd0b2b731d67906a6067a (patch) | |
tree | 67df3994de16ea751e1fe1ada8614ce7700104ff /src/ft_get_player_spawn.c | |
parent | Good player spawn view for N and S, minimap bot left StarCraft style (diff) | |
download | 42-cub3d-d94b7a155935bb09dc9cd0b2b731d67906a6067a.tar.gz 42-cub3d-d94b7a155935bb09dc9cd0b2b731d67906a6067a.tar.bz2 42-cub3d-d94b7a155935bb09dc9cd0b2b731d67906a6067a.tar.xz 42-cub3d-d94b7a155935bb09dc9cd0b2b731d67906a6067a.tar.zst 42-cub3d-d94b7a155935bb09dc9cd0b2b731d67906a6067a.zip |
Fixed
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 c848872..4e392e8 100644 --- a/src/ft_get_player_spawn.c +++ b/src/ft_get_player_spawn.c @@ -22,10 +22,10 @@ static void float sav_plane_x; sav_dir_x = pl->dir_x; - pl->dir_x = pl->dir_y; + 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_x = -pl->plane_y; pl->plane_y = sav_plane_x; } @@ -50,10 +50,10 @@ static void float sav_plane_x; sav_dir_x = pl->dir_x; - pl->dir_x = -pl->dir_y; + 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_x = pl->plane_y; pl->plane_y = -sav_plane_x; } |