From db5320aa188d773c8edc32eee844127457ef280c Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Tue, 14 Apr 2026 21:41:33 +0300 Subject: Improve the Path type --- structs.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'structs.h') diff --git a/structs.h b/structs.h index bc63408..5798b9e 100644 --- a/structs.h +++ b/structs.h @@ -32,11 +32,9 @@ enum Colors_e { * Use as map[row][column] */ typedef MapTile** Map; -/* Yeah I'm not sure either */ -struct PathNode_s { - Position parent; -}; -typedef struct PathNode_s PathNode; -typedef PathNode** Path; +/* A path is a 2D array, in which for every tile we store the Position of a + * tile we came from. To get the full path you have to follow it from end + * to start */ +typedef Position** Path; #endif /* STRUCTS_H_ */ -- cgit v1.2.3