summaryrefslogtreecommitdiff
path: root/src/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c9
1 files changed, 6 insertions, 3 deletions
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) {