diff options
| author | schererleander <leander@schererleander.de> | 2026-03-12 02:01:02 +0100 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2026-03-12 02:01:02 +0100 |
| commit | 0adca22d9e86130dfbcbfe2fc021710a8d45a927 (patch) | |
| tree | ce009a5c3464abd5ad66a352f6b79d8a4d0c195e /include/map.h | |
| parent | aafdfa0734b7c5dcea9f0e914ef6c66852b9d3a7 (diff) | |
refactor(map): return Map by value instead of heap allocation
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 d1587fa..8bd5096 100644 --- a/include/map.h +++ b/include/map.h @@ -19,7 +19,7 @@ typedef struct { typedef struct Entities Entities; -Map *LoadMap(const char *filename, Entities *entities); +Map LoadMap(const char *filename, Entities *entities); bool isCollision(Map *map, Rectangle bounds); @@ -29,4 +29,4 @@ void DrawKeys(Entities *entities, Map *map); Marker *FindMarker(Map *map, const char *name); -void UnloadMap(Map *map); +void UnloadMap(Map map); |
