Ignore:
Timestamp:
Mar 27, 2024, 12:31:14 PM (8 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Nego.pas

    r522 r531  
    481481procedure TNegoDlg.OffscreenPaint;
    482482var
    483   I, cred: Integer;
     483  I, Cred: Integer;
    484484  S: string;
    485485  OkEnabled: Boolean;
     
    600600  // show credibility
    601601  Offscreen.Canvas.Font.Assign(UniFont[ftTiny]);
    602   cred := MyRO.EnemyReport[DipMem[Me].pContact].Credibility;
    603   case cred of
     602  Cred := MyRO.EnemyReport[DipMem[Me].pContact].Credibility;
     603  case Cred of
    604604    0 .. 49:
    605605      I := 3;
     
    609609      I := 1;
    610610  end;
    611   PaintProgressBar(Offscreen.Canvas, I, xCred0, yCred0 + 17, (cred + 2) div 5,
     611  PaintProgressBar(Offscreen.Canvas, I, xCred0, yCred0 + 17, (Cred + 2) div 5,
    612612    0, 20, MainTexture);
    613   S := IntToStr(cred);
     613  S := IntToStr(Cred);
    614614  RisedTextOut(Offscreen.Canvas, xCred0 + 10 -
    615615    (BiColorTextWidth(Offscreen.Canvas, S) + 1) div 2, yCred0, S);
Note: See TracChangeset for help on using the changeset viewer.