Changeset 496 for trunk/LocalPlayer/Select.pas
- Timestamp:
- Dec 18, 2023, 10:31:54 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Select.pas
r487 r496 986 986 procedure TListDlg.InitLines; 987 987 var 988 required: array [0 .. nAdv - 1] of Integer;988 Required: array [0 .. nAdv - 1] of Integer; 989 989 990 990 procedure TryAddImpLine(Layer, Project: Integer); … … 1000 1000 procedure SortTechs; 1001 1001 var 1002 I, J, swap: Integer;1002 I, J, Swap: Integer; 1003 1003 begin // sort by advancedness 1004 1004 for I := 0 to Lines[0] - 2 do … … 1008 1008 nAdv + Code[0, J] then 1009 1009 begin 1010 swap := Code[0, I];1010 Swap := Code[0, I]; 1011 1011 Code[0, I] := Code[0, J]; 1012 Code[0, J] := swap;1012 Code[0, J] := Swap; 1013 1013 end; 1014 1014 end; … … 1016 1016 procedure SortCities; 1017 1017 var 1018 I, J, swap: Integer;1018 I, J, Swap: Integer; 1019 1019 begin 1020 1020 for I := 0 to Lines[0] - 2 do … … 1023 1023 then 1024 1024 begin 1025 swap := Code[0, I];1025 Swap := Code[0, I]; 1026 1026 Code[0, I] := Code[0, J]; 1027 Code[0, J] := swap;1027 Code[0, J] := Swap; 1028 1028 end; 1029 1029 end; … … 1039 1039 procedure SortModels; 1040 1040 var 1041 I, J, swap: Integer;1041 I, J, Swap: Integer; 1042 1042 begin // sort by code[2] 1043 1043 for I := 0 to Lines[0] - 2 do … … 1045 1045 if Code[2, I] > Code[2, J] then 1046 1046 begin 1047 swap := Code[0, I];1047 Swap := Code[0, I]; 1048 1048 Code[0, I] := Code[0, J]; 1049 Code[0, J] := swap;1050 swap := Code[1, I];1049 Code[0, J] := Swap; 1050 Swap := Code[1, I]; 1051 1051 Code[1, I] := Code[1, J]; 1052 Code[1, J] := swap;1053 swap := Code[2, I];1052 Code[1, J] := Swap; 1053 Swap := Code[2, I]; 1054 1054 Code[2, I] := Code[2, J]; 1055 Code[2, J] := swap;1055 Code[2, J] := Swap; 1056 1056 end; 1057 1057 end; … … 1059 1059 procedure MarkPreqs(I: Integer); 1060 1060 begin 1061 required[I] := 1;1061 Required[I] := 1; 1062 1062 if MyRO.Tech[I] < tsSeen then 1063 1063 begin … … 1147 1147 if MyData.FarTech <> adNone then 1148 1148 begin 1149 FillChar( required, SizeOf(required), 0);1149 FillChar(Required, SizeOf(Required), 0); 1150 1150 MarkPreqs(MyData.FarTech); 1151 1151 end; … … 1153 1153 if ((I in FutureTech) or (MyRO.Tech[I] < tsApplicable)) and 1154 1154 (Server(sSetResearch - sExecute, Me, I, nil^) >= rExecuted) and 1155 ((MyData.FarTech = adNone) or ( required[I] > 0)) then1155 ((MyData.FarTech = adNone) or (Required[I] > 0)) then 1156 1156 begin 1157 1157 Code[0, Lines[0]] := I;
Note:
See TracChangeset
for help on using the changeset viewer.