Merge pull request #662 from Bobblybook/master

Oculus crash fix
This commit is contained in:
Bobblybook
2024-11-01 19:33:14 +11:00
committed by GitHub

View File

@@ -15,6 +15,8 @@ float MountingDrakeMultiplier::GetValue(Action* action)
// It seems like this is due to moving/other actions being processed during the 0.5 secs. // It seems like this is due to moving/other actions being processed during the 0.5 secs.
// If we suppress everything, they seem to mount properly. A bit of a ham-fisted solution but it works // If we suppress everything, they seem to mount properly. A bit of a ham-fisted solution but it works
Player* master = botAI->GetMaster(); Player* master = botAI->GetMaster();
if (!master) { return 1.0f; }
if (bot->GetMapId() != OCULUS_MAP_ID || !master->GetVehicleBase() || bot->GetVehicleBase()) { return 1.0f; } if (bot->GetMapId() != OCULUS_MAP_ID || !master->GetVehicleBase() || bot->GetVehicleBase()) { return 1.0f; }
if (!dynamic_cast<MountDrakeAction*>(action)) if (!dynamic_cast<MountDrakeAction*>(action))