Changeset 327 for trunk/UMiniMap.pas


Ignore:
Timestamp:
Mar 25, 2021, 2:09:42 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Use enumeration type for MapOptions and game options.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMiniMap.pas

    r326 r327  
    55
    66uses
    7   Classes, SysUtils, Graphics, Protocol;
     7  Classes, SysUtils, Graphics, Protocol, ClientTools;
    88
    99type
     
    2222    Colors: array [0 .. 11, 0 .. 1] of TColor;
    2323    Mode: TMiniMode;
    24     Options: Integer;
     24    MapOptions: TMapOptions;
    2525    procedure LoadFromLogFile(FileName: string; var LastTurn: Integer; DefaultSize: TPoint);
    2626    procedure LoadFromMapFile(FileName: string; var nMapLandTiles, nMapStartPositions: Integer);
     
    3737
    3838uses
    39   ScreenTools, UPixelPointer, Global, GameServer, IsoEngine, Tribes, ClientTools;
     39  ScreenTools, UPixelPointer, Global, GameServer, IsoEngine, Tribes;
    4040
    4141const
     
    310310            cm := $808080 or cm shr 1; { increase brightness }
    311311          end
    312           else if Options and (1 shl moPolitical) <> 0 then begin
     312          else if moPolitical in MapOptions then begin
    313313            // Political
    314314            if MyMap[Loc] and fTerrain < fGrass then
Note: See TracChangeset for help on using the changeset viewer.