summaryrefslogtreecommitdiff
path: root/src/map.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-19 16:42:15 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-19 16:42:15 +0100
commit79efc8a8e9976bbdd41d4a47b58c71d3be9d4ff7 (patch)
tree5a46a8406ec3404859e0f3926bc75e08423afaa8 /src/map.c
parent22936e7a270a9bd0f13acb651b15db2158a8d6e0 (diff)
zombie chunks
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map.c b/src/map.c
index 1d805c5..a5bc96a 100644
--- a/src/map.c
+++ b/src/map.c
@@ -107,12 +107,12 @@ void load_map_from_data() {
}
}
-tile get_tile_under_coords(platform_window* window, float x, float y) {
+tile get_tile_under_coords(float x, float y) {
return map_loaded[(int)(y)][(int)(x)];
}
-float get_height_of_tile_under_coords(platform_window* window, float tocheckx, float tochecky) {
- tile tile_under_coords = get_tile_under_coords(window, tocheckx, tochecky);
+float get_height_of_tile_under_coords(float tocheckx, float tochecky) {
+ tile tile_under_coords = get_tile_under_coords(tocheckx, tochecky);
int ty = (int)(tochecky);
int tx = (int)(tocheckx);