Changeset 303 for branches/highdpi/LocalPlayer/IsoEngine.pas
- Timestamp:
- Mar 9, 2021, 9:19:49 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/IsoEngine.pas
r265 r303 133 133 OnInitEnemyModel := InitEnemyModelHandler; 134 134 if NoMap <> nil then 135 NoMap.Free;135 FreeAndNil(NoMap); 136 136 NoMap := TIsoMap.Create; 137 137 end; … … 168 168 { prepare dithered ground tiles } 169 169 if LandPatch <> nil then 170 LandPatch.Free;170 FreeAndNil(LandPatch); 171 171 LandPatch := TDpiBitmap.Create; 172 172 LandPatch.PixelFormat := pf24bit; … … 175 175 LandPatch.Canvas.FillRect(0, 0, LandPatch.Width, LandPatch.Height); 176 176 if OceanPatch <> nil then 177 OceanPatch.Free;177 FreeAndNil(OceanPatch); 178 178 OceanPatch := TDpiBitmap.Create; 179 179 OceanPatch.PixelFormat := pf24bit; … … 363 363 DitherMask.Canvas, 0, 0, SRCAND); 364 364 365 LandMore.Free;366 OceanMore.Free;367 DitherMask.Free;365 FreeAndNil(LandMore); 366 FreeAndNil(OceanMore); 367 FreeAndNil(DitherMask); 368 368 369 369 // reduce size of terrain icons … … 417 417 end; 418 418 Mask24.EndUpdate; 419 Mask24.Free;419 FreeAndNil(Mask24); 420 420 421 421 if Borders <> nil then 422 Borders.Free;422 FreeAndNil(Borders); 423 423 Borders := TDpiBitmap.Create; 424 424 Borders.PixelFormat := pf24bit; … … 702 702 end; 703 703 Textout(xShield + 2, yShield - 1, LabelTextColor, s); 704 end 704 end; 705 705 end; { PaintCity } 706 706 … … 1078 1078 if not(FoW and (Tile and fObserved = 0)) then 1079 1079 PaintBorder; 1080 1080 1081 if (Loc >= 0) and (Loc < G.lx * G.ly) and (Loc = FAdviceLoc) then 1081 1082 TSprite(x, y, spPlain); … … 1287 1288 i: integer; 1288 1289 begin 1289 FOutput.Canvas.pen.Color := $000000; // $FF shl (8*random(3));1290 1290 FOutput.Canvas.pen.Color := $000000; // $FF shl (8*random(3)); 1291 1291 for i := 0 to nx div 2 do
Note:
See TracChangeset
for help on using the changeset viewer.