summaryrefslogtreecommitdiff
path: root/include/pathfinding.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-11 20:00:21 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-11 20:00:21 +0100
commitf29d35faf7cc574a1a8c109f2f609db9d3d4b5ef (patch)
treedfd2fcbf20f3d37ffe1f19be3d0a9afb7fd24d86 /include/pathfinding.h
parent24af775b5041cbed67dfc84f3a0d67850a4b6a1b (diff)
bazinga
Diffstat (limited to 'include/pathfinding.h')
-rw-r--r--include/pathfinding.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/pathfinding.h b/include/pathfinding.h
index 2b38766..6bef101 100644
--- a/include/pathfinding.h
+++ b/include/pathfinding.h
@@ -3,6 +3,7 @@
#include <projectbase/project_base.h>
+#include "allocator.h"
#include "players.h"
#include "objects.h"
#include "list.h"
@@ -12,8 +13,8 @@ typedef struct t_pathfinding_request
vec2f start;
vec2f end;
array *to_fill;
- bool cancelled;
- bool done;
+ uint64_t timestamp;
+ mutex mutex;
} pathfinding_request;
array global_pathfinding_queue;