From 0adca22d9e86130dfbcbfe2fc021710a8d45a927 Mon Sep 17 00:00:00 2001 From: schererleander Date: Thu, 12 Mar 2026 02:01:02 +0100 Subject: refactor(map): return Map by value instead of heap allocation --- include/map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/map.h') 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); -- cgit v1.3.1