fix construction previewer showing green in front of existing sites

objectmenu
Maikel de Vries 2016-01-20 16:32:05 +01:00
parent d500218a02
commit d9dccd01ad
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public func AdjustPreview(bool below_surface, bool look_up, bool no_call)
// intersection-check with all other construction sites... bah
for (var other_site in FindObjects(Find_ID(ConstructionSite)))
{
if (!(other_site->GetLeftEdge() > GetX()+dimension_x/2 || other_site->GetRightEdge() < GetX()-dimension_x/2 || other_site->GetTopEdge() < GetY()+half_y || other_site->GetBottomEdge() > GetY()-half_y))
if (!(other_site->GetLeftEdge() > GetX()+dimension_x/2 || other_site->GetRightEdge() < GetX()-dimension_x/2 || other_site->GetTopEdge() > GetY()+half_y || other_site->GetBottomEdge() < GetY()-half_y))
blocked = true;
}