Skip to content

Commit

Permalink
Finished fortress wall
Browse files Browse the repository at this point in the history
  • Loading branch information
jwvhewitt committed Jun 26, 2016
1 parent a51e266 commit 1272d6d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
Binary file modified Image/wall_fortress.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 19 additions & 17 deletions gears.pp
Expand Up @@ -1231,6 +1231,25 @@ function FindRoot( Part: GearPtr ): GearPtr;
end;
end;


Procedure Rescale( Part: GearPtr; SF: Integer );
{ Alter the scale of this part and all its subcoms. }
var
S: GearPtr;
begin
Part^.Scale := SF;
S := Part^.SubCom;
while S <> Nil do begin
Rescale( S , SF );
S := S^.Next;
end;
S := Part^.InvCom;
while S <> Nil do begin
Rescale( S , SF );
S := S^.Next;
end;
end;

Procedure CheckDirectoryPresent;
{ Make sure that the default save directory exists. If not, }
{ create it. }
Expand All @@ -1253,23 +1272,6 @@ function FindRoot( Part: GearPtr ): GearPtr;
{$ENDIF}
end;

Procedure Rescale( Part: GearPtr; SF: Integer );
{ Alter the scale of this part and all its subcoms. }
var
S: GearPtr;
begin
Part^.Scale := SF;
S := Part^.SubCom;
while S <> Nil do begin
Rescale( S , SF );
S := S^.Next;
end;
S := Part^.InvCom;
while S <> Nil do begin
Rescale( S , SF );
S := S^.Next;
end;
end;

initialization
{ Make sure we have the required data directories. }
Expand Down

0 comments on commit 1272d6d

Please sign in to comment.