diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-19 16:42:15 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-19 16:42:15 +0100 |
| commit | 79efc8a8e9976bbdd41d4a47b58c71d3be9d4ff7 (patch) | |
| tree | 5a46a8406ec3404859e0f3926bc75e08423afaa8 /src/map.c | |
| parent | 22936e7a270a9bd0f13acb651b15db2158a8d6e0 (diff) | |
zombie chunks
Diffstat (limited to 'src/map.c')
| -rw-r--r-- | src/map.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |
