Changeset 205 for trunk


Ignore:
Timestamp:
May 8, 2020, 4:54:17 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Removed various code compilation warnings and hints.
Location:
trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/CityProcessing.pas

    r38 r205  
    630630  TileInfo: TTileInfo;
    631631begin
     632  BestDist := MaxInt;
    632633{$IFOPT O-}assert(1 shl p and InvalidTreatyMap = 0); {$ENDIF}
    633634  Best := 0;
     
    660661              result := Loc1;
    661662              Best := Resources;
    662               BestDist := Dist
    663             end
    664           end
    665         end
    666       end;
    667   end
     663              BestDist := Dist;
     664            end;
     665          end;
     666        end;
     667      end;
     668  end;
    668669end;
    669670
  • trunk/GameServer.pas

    r192 r205  
    77
    88uses
    9   Protocol, Database, dynlibs, Platform, dateutils, fgl, FileUtil, Graphics;
     9  Protocol, Database, dynlibs, Platform, dateutils, fgl, LazFileUtils, Graphics;
    1010
    1111const
     
    27002700  end;
    27012701
    2702 const
    2703   Dirx: array [0 .. 7] of integer = (1, 2, 1, 0, -1, -2, -1, 0);
    2704   Diry: array [0 .. 7] of integer = (-1, 0, 1, 2, 1, 0, -1, -2);
    2705 
    27062702var
    27072703  d, i, j, p1, p2, pt0, pt1, uix1, cix1, Loc0, Loc1, dx, dy, NewCap, MinCap,
     
    27092705    StopTurn, FutureMCost, NewProject, OldImp, mix, V8, V21, AStr, DStr,
    27102706    ABaseDamage, DBaseDamage: integer;
    2711   CityReport, AltCityReport: TCityReport;
     2707  CityReport: TCityReport;
    27122708  FormerCLState: TCmdListState;
    2713   EndTime: int64;
    27142709  Adjacent: TVicinity8Loc;
    27152710  Radius: TVicinity21Loc;
  • trunk/LocalPlayer/Battle.pas

    r188 r205  
    55
    66uses
    7   ScreenTools, Protocol, Messg, ButtonBase, ButtonA, Types, LCLIntf, LCLType,
     7  ScreenTools, Protocol, ButtonBase, ButtonA, Types, LCLIntf, LCLType,
    88  SysUtils, Classes, Graphics, Controls, Forms, DrawDlg;
    99
  • trunk/LocalPlayer/CityScreen.pas

    r189 r205  
    498498
    499499var
    500   x, y, xGr, i, i1, j, iix, d, dx, dy, PrCost, Cnt, Loc1, FreeSupp, Paintiix,
     500  x, y, xGr, i, j, iix, d, dx, dy, PrCost, Cnt, Loc1, FreeSupp, Paintiix,
    501501    HappyGain, OptiType, rx, ry, TrueFood, TrueProd, TruePoll: integer;
    502502  av: integer;
  • trunk/LocalPlayer/ClientTools.pas

    r70 r205  
    695695initialization
    696696
    697 assert(nImp < 128);
     697Assert(nImp < 128);
    698698CalculateAdvValues;
    699699
  • trunk/LocalPlayer/Help.pas

    r190 r205  
    66uses
    77  Protocol, ScreenTools, BaseWin, StringTables, Math, LCLIntf, LCLType,
    8   LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls,
     8  Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls,
    99  ButtonB, PVSB, Types, fgl;
    1010
  • trunk/LocalPlayer/Select.pas

    r188 r205  
    77  Protocol, ClientTools, Term, ScreenTools, IsoEngine, PVSB, BaseWin,
    88
    9   LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms,
     9  LCLIntf, LCLType, Messages, SysUtils, Classes, Graphics, Controls, Forms,
    1010  ExtCtrls, ButtonB, ButtonBase, Menus, Types;
    1111
  • trunk/LocalPlayer/TechTree.pas

    r190 r205  
    55
    66uses
    7   ScreenTools, Messg, LCLIntf, LCLType, Messages, SysUtils, Classes, Graphics,
    8   Controls, Forms, ButtonBase, ButtonB, DrawDlg;
     7  ScreenTools, LCLIntf, LCLType, SysUtils, Classes, Graphics,
     8  Controls, Forms, ButtonB, DrawDlg;
    99
    1010type
     
    3434
    3535uses
    36   Directories, PixelPointer;
     36  Directories;
    3737
    3838{$R *.lfm}
  • trunk/LocalPlayer/Term.pas

    r202 r205  
    16291629    (Adv: adSpaceFlight; Icon: woMIR));
    16301630var
    1631   Domain, p1, i, ad, uix, cix, MoveOptions, MoveResult, Loc1, Dist,
    1632     NewAgeCenterTo, Bankrupt, ShipMore, Winners, NewGovAvailable, dx,
     1631  p1, i, ad, uix, cix, MoveOptions, MoveResult, Loc1,
     1632    NewAgeCenterTo, Winners, NewGovAvailable, dx,
    16331633    dy: integer;
    16341634  MoveAdviceData: TMoveAdviceData;
     
    60086008var
    60096009  ToLoc, xFromLoc, yFromLoc, xToLoc, yToLoc, xFrom, yFrom, xTo, yTo, xMin, yMin,
    6010     xRange, yRange, xw1, Step, xMoving, yMoving, yl, SliceCount: integer;
     6010    xRange, yRange, xw1, Step, xMoving, yMoving, SliceCount: integer;
    60116011  UnitInfo: TUnitInfo;
    60126012  Ticks0, Ticks: TDateTime;
  • trunk/Locale.pas

    r194 r205  
    128128var
    129129  S: string;
    130   W: Integer;
    131130begin
    132131  PaintBackground(self, 3, 3, ClientWidth - 6, ClientHeight - 6);
  • trunk/Packages/CevoComponents/DrawDlg.pas

    r189 r205  
    66
    77uses
    8   Classes, SysUtils, Forms, LCLIntf, LCLType, LMessages, Messages, Graphics,
    9   Controls, ButtonBase, ButtonA, ButtonB, Area, ScreenTools;
     8  Classes, SysUtils, Forms, LCLIntf, LCLType, {$IFDEF LINUX}LMessages,{$ENDIF}
     9  Messages, Graphics, Controls, ButtonBase, ButtonA, ButtonB, Area, ScreenTools;
    1010
    1111type
     
    119119procedure TDrawDlg.MouseDown(Button: TMouseButton; Shift: TShiftState; X,
    120120  Y: Integer);
     121{$IFDEF LINUX}
    121122var
    122123  MousePosNew: TPoint;
    123124  NewFormPos: TPoint;
     125{$ENDIF}
    124126begin
    125127  inherited;
  • trunk/Packages/CevoComponents/ScreenTools.pas

    r196 r205  
    208208
    209209uses
    210   Directories, Sound, Registry, PixelPointer;
     210  Directories, Sound, PixelPointer;
    211211
    212212var
  • trunk/Packages/CevoComponents/Sound.pas

    r201 r205  
    44
    55uses
    6   Messages, SysUtils, Classes, Graphics, Controls, Forms, fgl, FileUtil,
     6  SysUtils, Classes, Graphics, Controls, Forms, fgl, FileUtil,
    77  StringTables, Directories
    88  {$IFDEF WINDOWS}, MMSystem, Windows{$ENDIF}
    9   {$IFDEF LINUX}, Process, AsyncProcess{$ENDIF};
     9  {$IFDEF LINUX}, Messages, Process, AsyncProcess{$ENDIF};
    1010
    1111type
Note: See TracChangeset for help on using the changeset viewer.