Fix that thing that spammed Nomade.

This commit is contained in:
Inusaito Sayori
2015-06-25 03:07:04 -04:00
parent b3b2da1428
commit 1368cd6816

View File

@@ -389,9 +389,11 @@ BOOL LLToolBrushLand::handleMouseDown(S32 x, S32 y, MASK mask)
return TRUE;
}
if (!canTerraformParcel(regionp))
static bool alerted(false); // Don't spam this
if (!alerted && !canTerraformParcel(regionp))
{
alertNoTerraformParcel();
alerted = true;
}
LLVector3 pos_region = region_position.getPositionRegion();