Skip to content

Commit

Permalink
drop aistate from waypointai::anynode
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Nov 3, 2024
1 parent e9305ae commit 46386f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion game/ai.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ namespace ai
int closenode();
int wpspot(int n, bool check = false);
int randomlink(int n);
bool anynode(aistate &b, int len = numprevnodes);
bool anynode(int len = numprevnodes);
bool hunt(aistate &b);
void jumpto(aistate &b, const vec &pos);
void fixfullrange(float &yaw, float &pitch, float &roll, bool full) const;
Expand Down
4 changes: 2 additions & 2 deletions game/waypointai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ namespace ai
return -1;
}

bool waypointai::anynode(aistate &b, int len)
bool waypointai::anynode(int len)
{
if(iswaypoint(aiplayer->lastnode))
{
Expand Down Expand Up @@ -973,7 +973,7 @@ namespace ai
}
}
b.override = false;
return anynode(b);
return anynode();
}

void waypointai::jumpto(aistate &b, const vec &pos)
Expand Down

0 comments on commit 46386f1

Please sign in to comment.