From 962ebf95459a8da08f44898d13d185e60de59b45 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 9 May 2024 11:31:07 +0200 Subject: work --- src/map.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/map.c') diff --git a/src/map.c b/src/map.c index 4ebd930..8ec60fb 100644 --- a/src/map.c +++ b/src/map.c @@ -1,5 +1,6 @@ #include "../include/map.h" +int player_zoom = 30; static int get_height_of_tile_tl(int current_height, int x, int y) { int highest_point = current_height; if (y > 0) { @@ -299,9 +300,11 @@ static int round_up(int numToRound, int multiple) } inline int get_tile_width(platform_window* window) { - int tile_width = window->height / 30; - if (window->width > window->height) tile_width = window->width / 30; - return round_up(tile_width, 8); + //int tile_width = window->height / player_zoom; + //if (window->width > window->height) tile_width = window->width / player_zoom; + //return round_up(tile_width, 8); + + return 32; } inline int get_tile_height(platform_window* window) { -- cgit v1.2.3-70-g09d2