Changeset 144 for trunk/NoTerm.pas


Ignore:
Timestamp:
May 11, 2018, 11:57:25 PM (6 years ago)
Author:
chronos
Message:
  • Modified: More code refactoring related to players brain selection.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NoTerm.pas

    r143 r144  
    234234        begin // game ended, update statistics
    235235          for p := 1 to nPlOffered - 1 do
    236             if bixView[p] >= 0 then
     236            if Assigned(PlayersBrain[p]) then
    237237              if 1 shl p and G.RO[me].Alive = 0 then
    238238                inc(ExtStat[p]) // extinct
     
    323323  Canvas.Font.Assign(UniFont[ftSmall]);
    324324  for i := 1 to nPlOffered - 1 do
    325     if bixView[i] >= 0 then
     325    if Assigned(PlayersBrain[i]) then
    326326    begin
    327327      Frame(Canvas, xBrain[i] - 24, yBrain[i] - 8 - 16, xBrain[i] - 24 + 111,
    328328        yBrain[i] - 8 - 16 + 111, MainTexture.clBevelShade,
    329329        MainTexture.clBevelShade);
    330       FrameImage(Canvas, Brains[bixView[i]].Picture, xBrain[i],
     330      FrameImage(Canvas, PlayersBrain[i].Picture, xBrain[i],
    331331        yBrain[i] - 16, 64, 64, 0, 0);
    332332      if 1 shl i and G.RO[me].Alive = 0 then
Note: See TracChangeset for help on using the changeset viewer.