Ignore:
Timestamp:
Apr 28, 2022, 10:40:37 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Changed WindowMode numerical constants to enumeration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r423 r431  
    9696    CloseAction: TCityCloseAction;
    9797    procedure OffscreenPaint; override;
    98     procedure ShowNewContent(NewMode, Loc: integer; ShowEvent: cardinal);
     98    procedure ShowNewContent(NewMode: TWindowMode; Loc: integer; ShowEvent: cardinal);
    9999    procedure Reset;
    100100    procedure CheckAge;
     
    11091109end;
    11101110
    1111 procedure TCityDlg.ShowNewContent(NewMode, Loc: integer; ShowEvent: cardinal);
     1111procedure TCityDlg.ShowNewContent(NewMode: TWindowMode; Loc: integer; ShowEvent: cardinal);
    11121112begin
    11131113  if MyMap[Loc] and fOwned <> 0 then
     
    12041204        if iix >= 0 then
    12051205          if ssShift in Shift then
    1206             HelpDlg.ShowNewContent(FWindowMode or wmPersistent, hkImp, iix)
     1206            HelpDlg.ShowNewContent(WindowModePersistent(FWindowMode), hkImp, iix)
    12071207          else if (ClientMode < scContact) then
    12081208            with MessgExDlg do
     
    13351335          Loc1 := dLoc(cLoc, dx, dy);
    13361336          if (Loc1 >= 0) and (Loc1 < G.lx * G.ly) then
    1337             HelpOnTerrain(Loc1, FWindowMode or wmPersistent)
     1337            HelpOnTerrain(Loc1, WindowModePersistent(FWindowMode))
    13381338        end
    13391339        else if (ClientMode < scContact) and (cGov <> gAnarchy) and
Note: See TracChangeset for help on using the changeset viewer.