Fixed bug where clicking where radar screen would be during Tactical Placement GUI broke it and allowed to enter map without placing anyone.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9250 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Shadooow
2022-01-12 02:44:17 +00:00
parent 0792d70583
commit 5aad9fc2dc
+2 -1
View File
@@ -29,6 +29,7 @@ extern INT8 gbWorldSectorZ;
extern BOOLEAN AreInMeanwhile();
#include "connect.h"
extern BOOLEAN gfTacticalPlacementGUIActive;
extern INT32 iCurrentMapSectorZ;
extern UINT16 UI_BOTTOM_X;
extern UINT16 UI_BOTTOM_Y;
@@ -279,7 +280,7 @@ void RadarRegionButtonCallback( MOUSE_REGION * pRegion, INT32 iReason )
INT16 sRadarX, sRadarY;
// check if we are allowed to do anything?
if( fRenderRadarScreen == FALSE )
if( fRenderRadarScreen == FALSE || gfTacticalPlacementGUIActive)
{
return;
}