Changeset 299
- Timestamp:
- Jul 10, 2019, 5:48:18 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormItem.lfm
r296 r299 12 12 OnDestroy = FormDestroy 13 13 OnShow = FormShow 14 LCLVersion = '2.0. 0.4'14 LCLVersion = '2.0.2.0' 15 15 object ButtonOk: TButton 16 16 Left = 74 … … 30 30 Top = 260 31 31 Width = 94 32 Anchors = [akLeft ]32 Anchors = [akLeft, akBottom] 33 33 Caption = 'Cancel' 34 34 ModalResult = 2 -
trunk/UBuilding.pas
r297 r299 42 42 public 43 43 Kind: TBuildingKind; 44 procedure Assign(Source: TItem); override; 44 45 property MapCell: TObject read FMapCell write SetMapCell; // TMapCell; 45 46 end; … … 88 89 FMapCell := AValue; 89 90 if Assigned(FMapCell) then TCell(FMapCell).Building := Self; 91 end; 92 93 procedure TBuilding.Assign(Source: TItem); 94 begin 95 inherited; 96 Kind := TBuilding(Source).Kind; 90 97 end; 91 98 -
trunk/UClientGUI.pas
r294 r299 182 182 Pen.Width := 1; 183 183 end else 184 if Assigned(Cell.Building) and (Cell.Building.Kind.SpecialType = stCity) then begin 184 if Assigned(Cell.Building) and Assigned(Cell.Building.Kind) and 185 (Cell.Building.Kind.SpecialType = stCity) then begin 185 186 // Cannot set clear border as it will display shifted on gtk2 186 187 //Pen.Style := psClear; … … 444 445 for Cell in ControlPlayer.PlayerMap.Cells do begin 445 446 if (Cell.MapCell.Terrain <> ttVoid) and View.IsCellVisible(Cell.MapCell) then begin 446 if Assigned(Cell.MapCell.Building) and (Cell.MapCell.Building.Kind.SpecialType = stCity) then begin 447 if Assigned(Cell.MapCell.Building) and Assigned(Cell.MapCell.Building.Kind) and 448 (Cell.MapCell.Building.Kind.SpecialType = stCity) then begin 447 449 // Cannot set clear border as it will display shifted on gtk2 448 450 //Pen.Style := psClear; … … 464 466 if (MapCell.Terrain <> ttVoid) and View.IsCellVisible(MapCell) then begin 465 467 if View.IsCellVisible(MapCell) and (MapCell.Terrain <> ttVoid) then begin 466 if Assigned(MapCell.Building) and (MapCell.Building.Kind.SpecialType = stCity) then begin 468 if Assigned(MapCell.Building) and Assigned(MapCell.Building.Kind) and 469 (MapCell.Building.Kind.SpecialType = stCity) then begin 467 470 // Cannot set clear border as it will display shifted on gtk2 468 471 //Pen.Style := psClear; -
trunk/UCore.pas
r298 r299 483 483 LocalClients := TClients.Create; 484 484 GameSettings := TGame.Create; 485 GameSettings.FileName := 'Settings'; 485 486 Game := TGame.Create; 486 487 Game.OnMoveUpdated := DoMoveUpdated; -
trunk/UGame.pas
r298 r299 61 61 procedure WinObjectiveMapPrepare; 62 62 public 63 FileName: string; 63 64 DevelMode: Boolean; 64 65 Players: TPlayers; … … 81 82 StayAliveForDefinedTurns: Integer; 82 83 MaxNeutralUnits: Integer; 83 FileName: string;84 84 FogOfWar: Boolean; 85 85 BridgeEnabled: Boolean; -
trunk/UMap.pas
r294 r299 622 622 if Assigned(OneUnit) then 623 623 Inc(TotalUnits, OneUnit.Power); 624 if Assigned(Building) and (Building.Kind.SpecialType = stCity) then 624 if Assigned(Building) and Assigned(Building.Kind) and 625 (Building.Kind.SpecialType = stCity) then 625 626 Inc(TotalCities); 626 627 if Extra = etObjectiveTarget then
Note:
See TracChangeset
for help on using the changeset viewer.