Changeset 531 for trunk/LocalPlayer/CityType.pas
- Timestamp:
- Mar 27, 2024, 12:31:14 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityType.pas
r530 r531 23 23 procedure FormClose(Sender: TObject; var Action: TCloseAction); 24 24 procedure DeleteBtnClick(Sender: TObject); 25 public26 procedure ShowNewContent(NewMode: TWindowMode);27 25 protected 28 26 procedure OffscreenPaint; override; … … 30 28 nPool, dragiix, ctype: Integer; 31 29 Pooliix: array [0 .. nImp - 1] of Integer; 32 listed: Set of 0 .. nImp;30 Listed: set of 0 .. nImp; 33 31 Changed: Boolean; 34 32 procedure LoadType(NewType: Integer); 35 33 procedure SaveType; 34 public 35 procedure ShowNewContent(NewMode: TWindowMode); 36 36 end; 37 37 … … 158 158 nPool := 0; 159 159 for iix := nWonder to nImp - 1 do 160 if not(iix in listed) and (Imp[iix].Kind = ikCommon) and (iix <> imTrGoods)160 if not(iix in Listed) and (Imp[iix].Kind = ikCommon) and (iix <> imTrGoods) 161 161 and (Imp[iix].Preq <> preNA) and 162 162 ((Imp[iix].Preq = preNone) or (MyRO.Tech[Imp[iix].Preq] >= tsApplicable)) … … 195 195 begin 196 196 ctype := NewType; 197 listed := [];197 Listed := []; 198 198 I := 0; 199 199 while MyData.ImpOrder[ctype, I] >= 0 do 200 200 begin 201 Include( listed, MyData.ImpOrder[ctype, I]);201 Include(Listed, MyData.ImpOrder[ctype, I]); 202 202 Inc(I); 203 203 end; … … 295 295 Assert(MyData.ImpOrder[ctype, I] = iix); 296 296 Move(MyData.ImpOrder[ctype, I + 1], MyData.ImpOrder[ctype, I], nImp - I); 297 Exclude( listed, iix);297 Exclude(Listed, iix); 298 298 end; 299 299 … … 308 308 (Y < yList + nListRow * 32) then 309 309 begin 310 if dragiix in listed then310 if dragiix in Listed then 311 311 UnList(dragiix); 312 312 I := (X - xList) div 42 + (Y - yList) div 32 * nListCol; … … 316 316 nImp - I - 1); 317 317 MyData.ImpOrder[ctype, I] := dragiix; 318 Include( listed, dragiix);318 Include(Listed, dragiix); 319 319 Changed := True; 320 320 end 321 else if (dragiix in listed) and (X >= xPool) and (X < xPool + nPoolCol * 42)321 else if (dragiix in Listed) and (X >= xPool) and (X < xPool + nPoolCol * 42) 322 322 and (Y >= yPool) and (Y < yPool + nPoolRow * 32) then 323 323 begin … … 340 340 begin 341 341 FillChar(MyData.ImpOrder[ctype], SizeOf(MyData.ImpOrder[ctype]), Byte(-1)); 342 listed := [];342 Listed := []; 343 343 Changed := True; 344 344 SmartUpdateContent;
Note:
See TracChangeset
for help on using the changeset viewer.