Fix helicopter airspace view when switching to travel mode

* Clicking destination column in teamlist for a squad in a helicopter will switch to first airspace view that shows safe / unsafe air sectors instead of the second sector.

* Clicking destination column in teamlist for a squad not in a helicopter while in either airspace view will now correctly turn it off
This commit is contained in:
Asdow
2025-12-04 23:06:08 +02:00
parent 96ede9299f
commit 1db41f4c36
+8 -3
View File
@@ -11735,7 +11735,6 @@ void TeamListDestinationRegionBtnCallBack(MOUSE_REGION *pRegion, INT32 iReason )
// if he's in the helicopter
if( gCharactersList[ iValue + FIRSTmercTOdisplay ].usSolID->iVehicleId == iHelicopterVehicleId )
{
TurnOnAirSpaceMode( );
if( RequestGiveSkyriderNewDestination( ) == FALSE )
{
// not allowed to change destination of the helicopter
@@ -16025,8 +16024,14 @@ void MakeMapModesSuitableForDestPlotting( INT8 bCharNumber )
{
if ( gusMapDisplayColourMode == MAP_DISPLAY_AIRSPACE || gusMapDisplayColourMode == MAP_DISPLAY_AIRSPACE_COLOURED_SAMS )
{
// turn off airspace mode automatically
ToggleAirspaceMode();
// turn airspace OFF
gusMapDisplayColourMode = MAP_DISPLAY_NORMAL;
MapBorderButtonOff(MAP_BORDER_AIRSPACE_BTN);
// dirty regions
fMapPanelDirty = TRUE;
fTeamPanelDirty = TRUE;
fCharacterInfoPanelDirty = TRUE;
fMapScreenBottomDirty = TRUE;
}
}