Changeset 294 for trunk/UClientGUI.pas
- Timestamp:
- Mar 29, 2019, 8:40:42 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UClientGUI.pas
r275 r294 70 70 implementation 71 71 72 uses 73 UBuilding; 74 72 75 resourcestring 73 76 SZeroZoomNotAlowed = 'Zero zoom not allowed'; … … 179 182 Pen.Width := 1; 180 183 end else 181 if Cell.Terrain = ttCitythen begin184 if Assigned(Cell.Building) and (Cell.Building.Kind.SpecialType = stCity) then begin 182 185 // Cannot set clear border as it will display shifted on gtk2 183 186 //Pen.Style := psClear; … … 441 444 for Cell in ControlPlayer.PlayerMap.Cells do begin 442 445 if (Cell.MapCell.Terrain <> ttVoid) and View.IsCellVisible(Cell.MapCell) then begin 443 if Cell.MapCell.Terrain = ttCitythen begin446 if Assigned(Cell.MapCell.Building) and (Cell.MapCell.Building.Kind.SpecialType = stCity) then begin 444 447 // Cannot set clear border as it will display shifted on gtk2 445 448 //Pen.Style := psClear; … … 461 464 if (MapCell.Terrain <> ttVoid) and View.IsCellVisible(MapCell) then begin 462 465 if View.IsCellVisible(MapCell) and (MapCell.Terrain <> ttVoid) then begin 463 if MapCell.Terrain = ttCitythen begin466 if Assigned(MapCell.Building) and (MapCell.Building.Kind.SpecialType = stCity) then begin 464 467 // Cannot set clear border as it will display shifted on gtk2 465 468 //Pen.Style := psClear;
Note:
See TracChangeset
for help on using the changeset viewer.