mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
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:
@@ -29,6 +29,7 @@ extern INT8 gbWorldSectorZ;
|
|||||||
extern BOOLEAN AreInMeanwhile();
|
extern BOOLEAN AreInMeanwhile();
|
||||||
#include "connect.h"
|
#include "connect.h"
|
||||||
|
|
||||||
|
extern BOOLEAN gfTacticalPlacementGUIActive;
|
||||||
extern INT32 iCurrentMapSectorZ;
|
extern INT32 iCurrentMapSectorZ;
|
||||||
extern UINT16 UI_BOTTOM_X;
|
extern UINT16 UI_BOTTOM_X;
|
||||||
extern UINT16 UI_BOTTOM_Y;
|
extern UINT16 UI_BOTTOM_Y;
|
||||||
@@ -279,7 +280,7 @@ void RadarRegionButtonCallback( MOUSE_REGION * pRegion, INT32 iReason )
|
|||||||
INT16 sRadarX, sRadarY;
|
INT16 sRadarX, sRadarY;
|
||||||
|
|
||||||
// check if we are allowed to do anything?
|
// check if we are allowed to do anything?
|
||||||
if( fRenderRadarScreen == FALSE )
|
if( fRenderRadarScreen == FALSE || gfTacticalPlacementGUIActive)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user