this took 4 eons to get compiling again

Update Zone.cpp

Update Zone.h

Update Zone.h

Update MovingPlatformComponent.cpp

Update ProximityMonitorComponent.cpp

quick cleanup

Use correct logging
This commit is contained in:
David Markowitz
2024-02-24 23:29:41 -08:00
parent 6863ee9d76
commit 772ac06e94
14 changed files with 88 additions and 68 deletions

View File

@@ -227,9 +227,9 @@ void TriggerComponent::HandleSetPath(Entity* targetEntity, std::vector<std::stri
if (!movementAIComponent) return;
movementAIComponent->SetupPath(argArray.at(0));
if (argArray.size() >= 2) {
int32_t index = 0;
if (!GeneralUtils::TryParse(argArray.at(1), index)) return;
movementAIComponent->SetPathStartingWaypointIndex(index);
auto index = GeneralUtils::TryParse<int32_t>(argArray.at(1));
if (!index) return;
movementAIComponent->SetPathStartingWaypointIndex(index.value());
}
if (argArray.size() >= 3 && argArray.at(2) == "1") movementAIComponent->ReversePath();
}