Fixed nested if block in USandSlabs.pas
This commit is contained in:
parent
5441700572
commit
00f90a1da9
|
@ -230,14 +230,12 @@ begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// Updates disintegration flag.
|
// Updates disintegration flag.
|
||||||
if ABrick.SupportBricks.Count = 1 then
|
if (ABrick.SupportBricks.Count = 1)
|
||||||
begin
|
and ABrick.SupportBricks[0].IsDisintegratable then
|
||||||
if ABrick.SupportBricks[0].IsDisintegratable then
|
|
||||||
begin
|
begin
|
||||||
ABrick.SupportBricks[0].IsDisintegratable := False;
|
ABrick.SupportBricks[0].IsDisintegratable := False;
|
||||||
Dec(FPart1);
|
Dec(FPart1);
|
||||||
end;
|
end;
|
||||||
end;
|
|
||||||
for i := 0 to ABrick.SupportBricks.Count - 1 do
|
for i := 0 to ABrick.SupportBricks.Count - 1 do
|
||||||
ABrick.SupportBricks[i].AddTopBrick(ABrick);
|
ABrick.SupportBricks[i].AddTopBrick(ABrick);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue