Fix taxi window close auto-mounting player on griffin

Fixes issue where closing the flight map window would incorrectly mount the
player on a griffin at spawn point. Added taxiLandingCooldown when closing
taxi window to prevent UNIT_FLAG_TAXI_FLIGHT check from re-triggering mount.
This commit is contained in:
Kelsi 2026-02-09 01:35:29 -08:00
parent 42821604d3
commit e40ea0c47a

View file

@ -5377,6 +5377,10 @@ void GameHandler::closeTaxi() {
// Clear any pending activation
taxiActivatePending_ = false;
onTaxiFlight_ = false;
// Set cooldown to prevent auto-mount trigger from re-applying taxi mount
// (The UNIT_FLAG_TAXI_FLIGHT check in handleUpdateObject won't re-trigger during cooldown)
taxiLandingCooldown_ = 2.0f;
}
void GameHandler::buildTaxiCostMap() {