mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +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();
|
||||
#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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user