From ec4dc8b058fbd55583f06e53c90e72609d3146ba Mon Sep 17 00:00:00 2001 From: Asdow <20314541+Asdow@users.noreply.github.com> Date: Wed, 9 Apr 2025 23:10:32 +0300 Subject: [PATCH] Provide gMapViewRegion through mapscreen.h --- Strategic/Map Screen Interface Map Inventory.cpp | 2 -- Strategic/mapscreen.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Strategic/Map Screen Interface Map Inventory.cpp b/Strategic/Map Screen Interface Map Inventory.cpp index cdfe41bd..ee7caaf2 100644 --- a/Strategic/Map Screen Interface Map Inventory.cpp +++ b/Strategic/Map Screen Interface Map Inventory.cpp @@ -1180,7 +1180,6 @@ void CreateMapInventoryPoolSlots( ) INT16 sXA = 0, sYA = 0; INT16 sULX = 0, sULY = 0; INT16 sBRX = 0, sBRY = 0; - extern MOUSE_REGION gMapViewRegion; //Moa: removed MapInventoryPoolMask, instead we disable map mouseregion and enable again when deleting stash regions MSYS_DisableRegion( &gMapViewRegion ); //MSYS_DefineRegion( &MapInventoryPoolMask, @@ -1217,7 +1216,6 @@ void CreateMapInventoryPoolSlots( ) void DestroyMapInventoryPoolSlots( void ) { INT32 iCounter = 0; - extern MOUSE_REGION gMapViewRegion; for( iCounter = 0; iCounter < MAP_INVENTORY_POOL_SLOT_COUNT; iCounter++ ) { diff --git a/Strategic/mapscreen.h b/Strategic/mapscreen.h index ac0b53e5..efbad087 100644 --- a/Strategic/mapscreen.h +++ b/Strategic/mapscreen.h @@ -123,6 +123,8 @@ struct UILayout_CharList int widthTimeRemaining; }; +extern MOUSE_REGION gMapViewRegion; + extern BOOLEAN fCharacterInfoPanelDirty; extern BOOLEAN fTeamPanelDirty; extern BOOLEAN fMapPanelDirty;