Changeset 363 for trunk/Start.pas


Ignore:
Timestamp:
Apr 12, 2021, 3:01:58 PM (9 months ago)
Author:
chronos
Message:
  • Modified: TBrain class moved to separate UBrain unit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r359 r363  
    77  GameServer, Messg, ButtonBase, ButtonA, ButtonC, ButtonB, Area, Types,
    88  LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, StdCtrls,
    9   Menus, Registry,  DrawDlg, fgl, Protocol, UMiniMap;
     9  Menus, Registry,  DrawDlg, fgl, Protocol, UMiniMap, UBrain;
    1010
    1111type
     
    750750        yMain + 164 { y0Mini-77 } , Phrases.Lookup('STARTCONTROLS', 16));
    751751      if AutoDiff = 1 then
    752         FrameImage(Canvas, BrainBeginner.Picture, xDefault, yDefault, 64,
     752        FrameImage(Canvas, Brains.GetBeginner.Picture, xDefault, yDefault, 64,
    753753          64, 0, 0, false)
    754754      else
     
    977977              if (Page = pgStartRandom) and (I <= AutoEnemies) or
    978978                (Page = pgStartMap) and (I < nMapStartPositions) then begin
    979                 if AutoDiff = 1 then PlayersBrain[I] := BrainBeginner
     979                if AutoDiff = 1 then PlayersBrain[I] := Brains.GetBeginner
    980980                  else PlayersBrain[I] := BrainDefault;
    981981                Difficulty[I] := EnemyAutoDiff[AutoDiff];
Note: See TracChangeset for help on using the changeset viewer.