aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_player_spawn.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-15 15:19:51 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-15 15:19:51 +0100
commit99b7afe29d51529e1b2d08b2d68ebec152457253 (patch)
tree9cb2217493def3e03c5c4ef049f383c3b98f17ae /src/ft_get_player_spawn.c
parentsmall changez (diff)
download42-cub3d-99b7afe29d51529e1b2d08b2d68ebec152457253.tar.gz
42-cub3d-99b7afe29d51529e1b2d08b2d68ebec152457253.tar.bz2
42-cub3d-99b7afe29d51529e1b2d08b2d68ebec152457253.tar.xz
42-cub3d-99b7afe29d51529e1b2d08b2d68ebec152457253.tar.zst
42-cub3d-99b7afe29d51529e1b2d08b2d68ebec152457253.zip
Merged
Diffstat (limited to 'src/ft_get_player_spawn.c')
-rw-r--r--src/ft_get_player_spawn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_get_player_spawn.c b/src/ft_get_player_spawn.c
index fa99fdf..f5d2c87 100644
--- a/src/ft_get_player_spawn.c
+++ b/src/ft_get_player_spawn.c
@@ -82,8 +82,8 @@ void
{
if (ft_ischarset("NSEW", clist->mlist->map[y][x]))
{
- plist->pos_x = x;
- plist->pos_y = y;
+ plist->pos_x = x + 0.5;
+ plist->pos_y = y + 0.5;
ft_get_start_side(clist->mlist->map[y][x], clist->plist);
return ;
}