Merge branch 'main' into movementAiPorting

This commit is contained in:
David Markowitz 2024-03-09 21:07:07 -08:00
commit 62d973e272

View File

@ -29,7 +29,7 @@ void StoryBoxInteractServer::OnUse(Entity* self, Entity* user) {
return; return;
} }
if (!self->HasVar(u"storyText") || !self->HasVar(u"altFlagID")) return; if (!self->HasVar(u"storyText")) return;
const auto storyText = self->GetVarAsString(u"storyText"); const auto storyText = self->GetVarAsString(u"storyText");
if (storyText.length() > 2) { if (storyText.length() > 2) {
auto storyValue = GeneralUtils::TryParse<uint32_t>(storyText.substr(storyText.length() - 2)); auto storyValue = GeneralUtils::TryParse<uint32_t>(storyText.substr(storyText.length() - 2));