diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-18 13:06:45 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-18 13:06:45 +0200 |
| commit | c548d74f4daac078c1338e5f8daf4afe980e08a9 (patch) | |
| tree | 003ded17200ae0bf19f8a56cd7276cf7e590cebb /include/map.h | |
| parent | f646ddb88ec19307d42729b7babdb77966449327 (diff) | |
move stuff from stack to heap
Diffstat (limited to 'include/map.h')
| -rw-r--r-- | include/map.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/map.h b/include/map.h index 517f758..13983c0 100644 --- a/include/map.h +++ b/include/map.h @@ -109,8 +109,8 @@ typedef struct t_extracted_map_data { // Data extracted from file on disk. } extracted_map_data; extern int player_zoom; -map_data map_to_load = {0}; -extracted_map_data loaded_map = {0}; +map_data* map_to_load; +extracted_map_data* loaded_map; vec2 screen_pos_to_world_pos(platform_window* window, float x, float y); vec2f world_pos_to_screen_pos(platform_window* window, float x, float y, float z); |
