Changeset 324 for trunk/LocalPlayer/CityScreen.pas
- Timestamp:
- Mar 23, 2021, 3:09:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityScreen.pas
r323 r324 1732 1732 end; } 1733 1733 1734 var1735 i, j, k: integer;1736 1737 1734 procedure TCityDlg.PageUpBtnClick(Sender: TObject); 1738 1735 begin … … 1771 1768 end; 1772 1769 1770 procedure SortImprovements; 1771 var 1772 i, j, k: integer; 1773 begin 1774 for i := 0 to nImp - 1 do 1775 ImpSorted[i] := i; 1776 for i := 0 to nImp - 2 do 1777 for j := i + 1 to nImp - 1 do 1778 if Prio(ImpSorted[i]) > Prio(ImpSorted[j]) then begin 1779 k := ImpSorted[i]; 1780 ImpSorted[i] := ImpSorted[j]; 1781 ImpSorted[j] := k; 1782 end; 1783 end; 1784 1773 1785 initialization 1774 1786 1775 for i := 0 to nImp - 1 do 1776 ImpSorted[i] := i; 1777 for i := 0 to nImp - 2 do 1778 for j := i + 1 to nImp - 1 do 1779 if Prio(ImpSorted[i]) > Prio(ImpSorted[j]) then 1780 begin 1781 k := ImpSorted[i]; 1782 ImpSorted[i] := ImpSorted[j]; 1783 ImpSorted[j] := k; 1784 end; 1787 SortImprovements; 1785 1788 1786 1789 end.
Note:
See TracChangeset
for help on using the changeset viewer.