Ignore:
Timestamp:
Jan 7, 2024, 10:24:51 PM (10 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
  • Added: High DPI aware SetWindowPos function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CityProcessing.pas

    r447 r522  
    665665            dy := V21 shr 2 - 3;
    666666            dx := V21 and 3 shl 1 - 3 + (dy + 3) and 1;
    667             Dist := abs(dx) + abs(dy) + abs(abs(dx) - abs(dy)) shr 1;
     667            Dist := Abs(dx) + Abs(dy) + Abs(Abs(dx) - Abs(dy)) shr 1;
    668668            if (Resources > Best) or (Resources = Best) and (Dist < BestDist)
    669669            then
Note: See TracChangeset for help on using the changeset viewer.