Skip to content

Commit 59a9da2

Browse files
committed
fix norm
1 parent 51765e5 commit 59a9da2

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

srcs/engine/minimap/minimap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ static void draw_map_cell(t_game *game, int screen_x, int screen_y,
2828
int map_x;
2929
int map_y;
3030

31-
map_x = data->player_map_x + (screen_x - data->view_radius);
32-
map_y = data->player_map_y + (screen_y - data->view_radius);
31+
map_x = data->player_map_x + (screen_x - data->view_radius);
32+
map_y = data->player_map_y + (screen_y - data->view_radius);
3333
if (!is_valid_map_position(game, map_y, map_x))
3434
return ;
3535
if (game->map.grid[map_x][map_y] == '1')

srcs/engine/minimap/minimap_draw.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ void draw_minimap_cell(t_game *game, int screen_x, int screen_y, int color)
1919
int i;
2020
int j;
2121

22-
start_x = MINIMAP_PADDING + (screen_x * MINIMAP_CELL_SIZE);
23-
start_y = WINDOW_HEIGHT - MINIMAP_PADDING - ((MINIMAP_VIEW_SIZE - screen_y)
24-
* MINIMAP_CELL_SIZE);
22+
start_x = MINIMAP_PADDING + (screen_x * MINIMAP_CELL_SIZE);
23+
start_y = WINDOW_HEIGHT - MINIMAP_PADDING - ((MINIMAP_VIEW_SIZE - screen_y)
24+
* MINIMAP_CELL_SIZE);
2525
i = -1;
2626
while (++i < MINIMAP_CELL_SIZE)
2727
{

0 commit comments

Comments
 (0)