Ignore:
Timestamp:
Nov 27, 2023, 12:10:57 AM (12 months ago)
Author:
chronos
Message:
  • Modified: Use enumeration type in Help unit for better readability.
  • Fixed: Corruption external help image referenced with incorrect file name case.
  • Fixed: Chinese translation converted to UTF-8.
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r456 r457  
    26462646        HelpDlg.Difficulty := 0;
    26472647        if Command = cStartCredits then
    2648           HelpDlg.ShowNewContent(wmModal, hkMisc, miscCredits)
     2648          HelpDlg.ShowNewContent(wmModal, hkMisc, Integer(miscCredits))
    26492649        else
    2650           HelpDlg.ShowNewContent(wmModal, hkMisc, miscMain);
     2650          HelpDlg.ShowNewContent(wmModal, hkMisc, Integer(miscMain));
    26512651        Tribes.Done;
    26522652      end;
     
    38383838    HelpDlg.ShowNewContent(wmPersistent, hkText, HelpDlg.TextIndex('MAPEDIT'))
    38393839  else
    3840     HelpDlg.ShowNewContent(wmPersistent, hkMisc, miscMain);
     3840    HelpDlg.ShowNewContent(wmPersistent, hkMisc, Integer(miscMain));
    38413841end;
    38423842
     
    63306330            PaintLoc(ToLoc, 1);
    63316331          end;
    6332         rExecuted .. maxint:
     6332        rExecuted..MaxInt:
    63336333          begin
    63346334            if Result and rUnitRemoved <> 0 then
     
    64586458        CityOptimizer_BeginOfTurn;
    64596459        NeedEcoUpdate := True;
    6460       end
    6461       else
    6462       begin
     6460      end else begin
    64636461        if cixChanged >= 0 then
    64646462        begin
Note: See TracChangeset for help on using the changeset viewer.