Skip to content

Commit

Permalink
pathfinder: stringify args expecting numbers (tgstation#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvvv-vvvv authored and itsmeow committed Dec 28, 2023
1 parent 86d5150 commit 31bd2c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dmsrc/pathfinder.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
/**
* Remove every link to the node with unique_id. Replace that node by null
*/
#define rustg_remove_node_astar(unique_id) RUSTG_CALL(RUST_G, "remove_node_astar")(unique_id)
#define rustg_remove_node_astar(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]")

0 comments on commit 31bd2c7

Please sign in to comment.