working forward

This commit is contained in:
David Markowitz
2023-08-06 21:15:06 -07:00
parent bce87aaa06
commit 3e12dd782b
3 changed files with 28 additions and 12 deletions

View File

@@ -301,11 +301,7 @@ 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());
// }
movementAI->SetPath(pathWaypoints);
movementAI->SetPath(pathWaypoints, true);
enemy->AddDieCallback([this, self, enemy, name]() {
RegisterHit(self, enemy, name);