mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +01:00
Rename HOOK_TYPE and its members
This commit is contained in:
@@ -469,7 +469,7 @@ bool EntityBase::Is<Vehicle>() const
|
||||
static void InvokeVehicleCrashHook(const EntityId vehicleId, const std::string_view crashId)
|
||||
{
|
||||
auto& hookEngine = OpenRCT2::GetContext()->GetScriptEngine().GetHookEngine();
|
||||
if (hookEngine.HasSubscriptions(OpenRCT2::Scripting::HOOK_TYPE::VEHICLE_CRASH))
|
||||
if (hookEngine.HasSubscriptions(OpenRCT2::Scripting::HookType::vehicleCrash))
|
||||
{
|
||||
auto ctx = OpenRCT2::GetContext()->GetScriptEngine().GetContext();
|
||||
|
||||
@@ -480,7 +480,7 @@ static void InvokeVehicleCrashHook(const EntityId vehicleId, const std::string_v
|
||||
|
||||
// Call the subscriptions
|
||||
auto e = obj.Take();
|
||||
hookEngine.Call(OpenRCT2::Scripting::HOOK_TYPE::VEHICLE_CRASH, e, true);
|
||||
hookEngine.Call(OpenRCT2::Scripting::HookType::vehicleCrash, e, true);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user