suppression of the map view

This commit is contained in:
hugogogo
2022-05-02 09:39:03 +02:00
parent a2e4db41a9
commit a6fd2df6d5
7 changed files with 5 additions and 158 deletions

View File

@@ -18,8 +18,8 @@ int plr_out_limits(t_game *game, int x, int y)
int cell_x;
int cell_y;
xmax = game->map_img.szl / (game->map_img.bpp / 8);
ymax = game->map_win.size_y;
xmax = game->map.size_x * game->map.cell;
ymax = game->map.size_y * game->map.cell;
cell_x = x / game->map.cell;
cell_y = y / game->map.cell;
if (is_wall(game, cell_x, cell_y))