Merge pull request #1085 from DarkflameUniverse/issue-436

fix: not exiting shooting gallery when clicking activity close button
This commit is contained in:
Gie "Max" Vanommeslaeghe
2023-05-13 14:11:16 +02:00
committed by GitHub
8 changed files with 67 additions and 39 deletions

View File

@@ -1473,6 +1473,12 @@ void Entity::OnChoiceBoxResponse(Entity* sender, int32_t button, const std::u16s
}
}
void Entity::RequestActivityExit(Entity* sender, LWOOBJID player, bool canceled) {
for (CppScripts::Script* script : CppScripts::GetEntityScripts(this)) {
script->OnRequestActivityExit(sender, player, canceled);
}
}
void Entity::Smash(const LWOOBJID source, const eKillType killType, const std::u16string& deathType) {
if (!m_PlayerIsReadyForUpdates) return;