Flight
2011-07-03 05:48:36
I'm wanting to invert 'BankPath' and use it as 'FurnacePath'. Here's what I have:
Here's the 'InvertPath_F' function:
I've tried all of the following:
What am I missing?
Tiles[BankPath] := [Tile(2973,3370),Tile(2965,3377),Tile(2950,3375),Tile(2946,3369)];
Tiles[FurnacePath] := InvertPath_F(Tiles[BankPath]);
Here's the 'InvertPath_F' function:
//By Drags111, modified to return path
Function InvertPath_F(var Path: TTileArray): TTileArray;
var
Temp: TTileArray;
i: integer;
begin
for i := High(Path) downto 0 do
begin
SetLength(Temp, Length(Temp)+1);
Temp[High(Temp)] := Path[i];
end;
Result := Temp;
end;
I've tried all of the following:
Tiles[FurnacePath] := InvertPath_F(Tiles[BankPath]);
Tiles[FurnacePath] := [InvertPath_F(Tiles[BankPath])];
Tiles[FurnacePath] := InvertPath_F([Tiles[BankPath]]);
Tiles[FurnacePath] := InvertPath_F([BankPath]);
Tiles[FurnacePath] := InvertPath_F(BankPath);
What am I missing?