Changeset 274 for trunk


Ignore:
Timestamp:
Aug 4, 2020, 5:25:33 PM (4 years ago)
Author:
chronos
Message:
  • Added: Small Tutorial map.
  • Fixed: StdAI possible range check error.
  • Fixed: Exception in counting human players from assigned players brains for predefined maps.
Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/AI/StdAI/Barbarina.pas

    r160 r274  
    982982    if RO.nEnemyUn>0 then
    983983      begin
    984       fillchar(euixMap, MapSize*2, $FFFF);
     984      fillchar(euixMap, MapSize*2, $FF);
    985985      fillchar(AttackScore,RO.nEnemyUn*4,0);
    986986      for euix:=0 to RO.nEnemyUn-1 do with RO.EnemyUn[euix] do
  • trunk/GameServer.pas

    r235 r274  
    863863    Human := 0;
    864864    for p1 := 0 to nPl - 1 do
    865       if bix[p1].Kind = btTerm then
     865      if Assigned(bix[p1]) and (bix[p1].Kind = btTerm) then
    866866        inc(Human, 1 shl p1);
    867867    InitMapGame(Human);
Note: See TracChangeset for help on using the changeset viewer.