From ee83ad1654b9447b5599476c1e90f59b3d209d07 Mon Sep 17 00:00:00 2001 From: forest <136390975+vvvv-vvvv@users.noreply.github.com> Date: Sat, 23 Dec 2023 23:26:59 +0000 Subject: [PATCH] pathfinder: stringify args expecting numbers --- dmsrc/pathfinder.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dmsrc/pathfinder.dm b/dmsrc/pathfinder.dm index 3259aa87..2bcf7c0d 100644 --- a/dmsrc/pathfinder.dm +++ b/dmsrc/pathfinder.dm @@ -24,9 +24,9 @@ /**² * Remove every link to the node with unique_id. Replace that node by null */ -#define rustg_remove_node_astart(unique_id) RUSTG_CALL(RUST_G, "remove_node_astar")(unique_id) +#define rustg_remove_node_astart(unique_id) RUSTG_CALL(RUST_G, "remove_node_astar")("[unique_id]") /** * Compute the shortest path between start_node and goal_node using A*. Heuristic used is simple geometric distance */ -#define rustg_generate_path_astar(start_node_id, goal_node_id) RUSTG_CALL(RUST_G, "generate_path_astar")(start_node_id, goal_node_id) +#define rustg_generate_path_astar(start_node_id, goal_node_id) RUSTG_CALL(RUST_G, "generate_path_astar")("[start_node_id]", "[goal_node_id]")