use indexes for pathing

This commit is contained in:
David Markowitz
2023-08-06 20:25:22 -07:00
parent 20b2a62932
commit bce87aaa06
3 changed files with 27 additions and 14 deletions

View File

@@ -301,9 +301,9 @@ void SGCannon::OnActivityTimerDone(Entity* self, const std::string& name) {
pathWaypoints.push_back(waypoint.position);
}
if (GeneralUtils::GenerateRandomNumber<float_t>(0, 1) < 0.5f) {
std::reverse(pathWaypoints.begin(), pathWaypoints.end());
}
// if (GeneralUtils::GenerateRandomNumber<float_t>(0, 1) < 0.5f) {
// std::reverse(pathWaypoints.begin(), pathWaypoints.end());
// }
movementAI->SetPath(pathWaypoints);