mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Move UpdateAirspaceControl() out of #ifdef
Fixes UB not updating samsite airspace correctly after battle
This commit is contained in:
@@ -342,8 +342,8 @@ BOOLEAN SetThisSectorAsPlayerControlled( INT16 sMapX, INT16 sMapY, INT8 bMapZ, B
|
|||||||
// Ja25: no loyalty
|
// Ja25: no loyalty
|
||||||
#else
|
#else
|
||||||
HandleGlobalLoyaltyEvent( GLOBAL_LOYALTY_GAIN_SAM, sMapX, sMapY, bMapZ );
|
HandleGlobalLoyaltyEvent( GLOBAL_LOYALTY_GAIN_SAM, sMapX, sMapY, bMapZ );
|
||||||
UpdateAirspaceControl( );
|
|
||||||
#endif
|
#endif
|
||||||
|
UpdateAirspaceControl( );
|
||||||
// if Skyrider has been delivered to chopper, and already mentioned Drassen SAM site, but not used this quote yet
|
// if Skyrider has been delivered to chopper, and already mentioned Drassen SAM site, but not used this quote yet
|
||||||
if ( IsHelicopterPilotAvailable( ) && ( guiHelicopterSkyriderTalkState >= 1 ) && ( !gfSkyriderSaidCongratsOnTakingSAM ) )
|
if ( IsHelicopterPilotAvailable( ) && ( guiHelicopterSkyriderTalkState >= 1 ) && ( !gfSkyriderSaidCongratsOnTakingSAM ) )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user