Skip to content

Commit

Permalink
Fixed c bindings build
Browse files Browse the repository at this point in the history
  • Loading branch information
namreeb committed Jul 30, 2023
1 parent 4604e38 commit 032fcee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pathfind/pathfind_c_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ PathfindResultType pathfind_find_height(pathfind::Map* const map, float start_x,
PathfindResultType pathfind_line_of_sight(pathfind::Map* map,
float start_x, float start_y, float start_z,
float stop_x, float stop_y, float stop_z,
uint8_t* const line_of_sight) {
uint8_t* const line_of_sight, uint8_t doodads) {
try
{
if (map->LineOfSight({start_x, start_y, start_z}, {stop_x, stop_y, stop_z})) {
if (map->LineOfSight({start_x, start_y, start_z}, {stop_x, stop_y, stop_z}, doodads)) {
*line_of_sight = 1;
} else {
*line_of_sight = 0;
Expand Down
2 changes: 1 addition & 1 deletion pathfind/pathfind_c_bindings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ PathfindResultType pathfind_find_height(pathfind::Map* const map, float start_x,
PathfindResultType pathfind_line_of_sight(pathfind::Map* const map,
float start_x, float start_y, float start_z,
float stop_x, float stop_y, float stop_z,
uint8_t* const line_of_sight);
uint8_t* const line_of_sight, uint8_t doodads);
} // extern "C"

0 comments on commit 032fcee

Please sign in to comment.