62,6 → 62,7 |
CountedSeconds: Integer; |
LevelFile: String; |
LookupFieldCoordinateArray: array of TPoint; |
OriginalPlayGroundMatrix: TPlayGroundMatrix; |
PrevPlaygroundMatrixes: array of TPlayGroundMatrix; |
PlaygroundMatrix: TPlayGroundMatrix; |
Points: Integer; |
218,6 → 219,7 |
JumpHistory.Clear; |
|
ClearMatrix(PlayGroundMatrix, true); |
ClearMatrix(OriginalPlayGroundMatrix, false); |
for i := 0 to Length(PrevPlaygroundMatrixes)-1 do |
ClearMatrix(PrevPlaygroundMatrixes[i], false); |
SetLength(PrevPlaygroundMatrixes, 0); |
611,6 → 613,7 |
PlayGround.Top := ClientHeight div 2 - PlayGround.Height div 2; |
end; |
|
OriginalPlayGroundMatrix := CloneMatrix(PlayGroundMatrix); |
SetLength(PrevPlaygroundMatrixes,1); |
PrevPlaygroundMatrixes[0] := CloneMatrix(PlayGroundMatrix); |
MUndo.Enabled := false; |
722,8 → 725,6 |
end; |
|
procedure TMainForm.RestartLevel; |
var |
i: Integer; |
begin |
MPauseTime.Enabled := false; |
Timer.Enabled := false; |
741,12 → 742,10 |
|
JumpHistory.Clear; |
|
RedrawStonesFromMatrix(PrevPlaygroundMatrixes[0]); |
SetNewPlayGroundMatrix(PrevPlaygroundMatrixes[0]); |
for i := 1 to Length(PrevPlaygroundMatrixes)-1 do |
ClearMatrix(PrevPlaygroundMatrixes[i], false); |
RedrawStonesFromMatrix(OriginalPlayGroundMatrix); |
SetNewPlayGroundMatrix(OriginalPlayGroundMatrix); |
SetLength(PrevPlaygroundMatrixes, 1); |
|
PrevPlaygroundMatrixes[0] := CloneMatrix(OriginalPlayGroundMatrix); |
MUndo.Enabled := false; |
end; |
|