game view, but wrong :p

This commit is contained in:
hugogogo
2022-04-24 21:28:50 +02:00
parent c886118bd6
commit c52f04d9c8
7 changed files with 76 additions and 45 deletions

View File

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