Ignore:
Timestamp:
Apr 21, 2024, 10:57:18 AM (4 weeks ago)
Author:
chronos
Message:
  • Fixed: Bad unit drawing in battle dialog.
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r536 r548  
    13661366      and (Y >= ymOpt - 32) and (Y < ymOpt + 32) then
    13671367    begin
    1368       I := sqr(X - xmOpt) + sqr(Y - ymOpt); // click radius
     1368      I := Sqr(X - xmOpt) + Sqr(Y - ymOpt); // click radius
    13691369      if I <= 32 * 32 then
    13701370      begin
     
    13751375            I := 3 // rwGrowth
    13761376        else
    1377           case trunc(arctan2(X - xmOpt, ymOpt - Y) * 180 / pi) of
     1377          case Trunc(ArcTan2(X - xmOpt, ymOpt - Y) * 180 / Pi) of
    13781378            - 25 - 52 * 2 .. -26 - 52:
    13791379              I := 1;
Note: See TracChangeset for help on using the changeset viewer.