Changeset 592 for trunk/AI


Ignore:
Timestamp:
Aug 10, 2024, 3:40:04 PM (3 months ago)
Author:
chronos
Message:
  • Fixed: Avoided more GTK2 chrashes.
  • Fixed: Build StdAI with O1 optimization level to avoid crash.
  • Modified: Code cleanup.
Location:
trunk/AI/StdAI
Files:
5 edited

Legend:

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

    r549 r592  
    289289    end;
    290290  end;
    291   //!!!assert(Quality>0);
     291  //!!!Assert(Quality > 0);
    292292end;
    293293
  • trunk/AI/StdAI/CustomAI.pas

    r531 r592  
    687687  Result := True;
    688688  // always returns true so that it can be used like
    689   // "assert(DebugMessage(...));" -> not compiled in release build
     689  // "Assert(DebugMessage(...));" -> not compiled in release build
    690690end;
    691691
     
    696696  Result := True;
    697697  // always returns true so that it can be used like
    698   // "assert(SetDebugMap(...));" -> not compiled in release build
     698  // "Assert(SetDebugMap(...));" -> not compiled in release build
    699699end;
    700700
  • trunk/AI/StdAI/StdAI.lpi

    r289 r592  
    22<CONFIG>
    33  <ProjectOptions>
    4     <Version Value="11"/>
     4    <Version Value="12"/>
    55    <PathDelim Value="\"/>
    66    <General>
     
    99        <MainUnitHasCreateFormStatements Value="False"/>
    1010        <MainUnitHasTitleStatement Value="False"/>
     11        <MainUnitHasScaledStatement Value="False"/>
     12        <CompatibilityMode Value="True"/>
    1113      </Flags>
    1214      <SessionStorage Value="InProjectDir"/>
    13       <MainUnit Value="0"/>
    1415      <Title Value="StdAI"/>
    1516      <UseAppBundle Value="False"/>
     
    4041            </SyntaxOptions>
    4142          </Parsing>
    42           <CodeGeneration>
    43             <Optimizations>
    44               <OptimizationLevel Value="3"/>
    45             </Optimizations>
    46           </CodeGeneration>
    4743          <Linking>
    4844            <Debugging>
     
    6965    <RunParams>
    7066      <FormatVersion Value="2"/>
    71       <Modes Count="0"/>
    7267    </RunParams>
    7368    <RequiredPackages Count="1">
  • trunk/AI/StdAI/ToolAI.pas

    r548 r592  
    652652  MoveCost, RecoverCost: Integer;
    653653begin
    654   //IsCapture:=true;
     654  //IsCapture := True;
    655655  Assert(((FromTile and fTerrain <= fMountains) or (FromTile and
    656656    fTerrain = fUNKNOWN)) and ((ToTile and fTerrain <= fMountains) or
Note: See TracChangeset for help on using the changeset viewer.