Changeset 294 for trunk/UPlayer.pas


Ignore:
Timestamp:
Mar 29, 2019, 8:40:42 AM (6 years ago)
Author:
chronos
Message:
  • Modified: Change terrain type ttCity to map cell building with special type stCity.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UPlayer.pas

    r291 r294  
    210210
    211211uses
    212   UGame, UGameSystem;
     212  UGame, UGameSystem, UBuilding;
    213213
    214214resourcestring
     
    13161316  with TCell(Cells[I]) do begin
    13171317    if (Player = Self) and ((TGame(Game).GrowCells = gcPlayerAll) or
    1318     ((TGame(Game).GrowCells = gcPlayerCities) and (Terrain = ttCity))) then begin
     1318    ((TGame(Game).GrowCells = gcPlayerCities) and (Assigned(Building) and (Building.Kind.SpecialType = stCity)))) then begin
    13191319      if not Assigned(OneUnit) then begin
    13201320        NewUnit := TGame(Game).Units.AddNew(TUnitKind(TGame(Game).GameSystem.UnitKinds.First), 0);
Note: See TracChangeset for help on using the changeset viewer.