Changeset 437 for trunk/LocalPlayer


Ignore:
Timestamp:
May 11, 2022, 9:06:36 AM (3 years ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
Location:
trunk/LocalPlayer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Battle.pas

    r352 r437  
    3838  BattleDlg: TBattleDlg;
    3939
     40
    4041implementation
    4142
     
    149150  begin
    150151    if Forecast.EndHealthDef > 0 then
    151       RisedTextOut(ca, xm + 10, ym - (TextSize.cy + 1) div 2, LabelText)
     152      RisedTextOut(ca, xm + 10, ym - (TextSize.cy + 1) div 2, LabelText);
    152153  end
    153154  else
     
    171172    if Forecast.EndHealthAtt > 0 then
    172173      RisedTextOut(ca, xm - (TextSize.cx + 1) div 2, ym + 8 + LAAvoidedDamage,
    173         LabelText)
     174        LabelText);
    174175  end
    175176  else
     
    240241    Brush.Style := bsClear;
    241242    PaintBackground(self, 3 + Border, 3 + Border,
    242       ClientWidth - (6 + 2 * Border), ClientHeight - (6 + 2 * Border))
     243      ClientWidth - (6 + 2 * Border), ClientHeight - (6 + 2 * Border));
    243244  end;
    244245  Frame(Canvas, Border + 1, Border + 1, ClientWidth - (2 + Border),
     
    270271        205 + (MessageLineSpacing - MessageLineSpacing div 2), s1);
    271272    end;
    272     ym := 110
     273    ym := 110;
    273274  end
    274275  else
     
    297298begin
    298299  if not IsSuicideQuery then
    299     Close
     300    Close;
    300301end;
    301302
     
    309310    if Key <> VK_ESCAPE then
    310311      MainScreen.FormKeyDown(Sender, Key, Shift);
    311   end
     312  end;
    312313end;
    313314
  • trunk/LocalPlayer/Draft.pas

    r432 r437  
    4343  DraftDlg: TDraftDlg;
    4444
     45
    4546implementation
    4647
    47 uses Help, Tribes, Directories;
     48uses
     49  Help, Tribes, Directories;
    4850
    4951{$R *.lfm}
     
    175177              end;
    176178            end;
    177           end
     179          end;
    178180      end;
    179181
     
    403405  end;
    404406  MarkUsedOffscreen(ClientWidth, ClientHeight);
    405 end; { MainPaint }
     407end;
    406408
    407409procedure TDraftDlg.SetDomain(d: integer);
     
    434436    begin
    435437      code[Lines] := i;
    436       inc(Lines)
     438      inc(Lines);
    437439    end;
    438440  yFeature := yFeature0 + (MaxLines - Lines) * LinePitch div 2;
     
    445447        x := code[i];
    446448        code[i] := code[j];
    447         code[j] := x
     449        code[j] := x;
    448450      end;
    449451end;
     
    554556          SmartInvalidate;
    555557        end;
    556       end
    557     end
    558   end
     558      end;
     559    end;
     560  end;
    559561end;
    560562
Note: See TracChangeset for help on using the changeset viewer.