Ensure pathfinding always finds the shortest path
This commit is contained in:
@@ -15,8 +15,9 @@ typedef struct PathNode {
|
||||
typedef struct PathNodeRecord {
|
||||
bool visited : 1;
|
||||
bool open : 1;
|
||||
i8 x : 3;
|
||||
i8 y : 3;
|
||||
i8 toParentX : 3;
|
||||
i8 toParentY : 3;
|
||||
i32 nodeIdx;
|
||||
} PathNodeRecord;
|
||||
|
||||
typedef struct PathfindingDesc {
|
||||
|
||||
Reference in New Issue
Block a user