Ignore:
Timestamp:
Nov 23, 2017, 12:14:15 AM (7 years ago)
Author:
chronos
Message:
  • Modified: Voronoi map option enabled for normal user. Map generation is still not perfect but playable.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/UGeometry.pas

    r165 r166  
    161161  LDetDivInv := 1 / D;
    162162
    163   Intersection.X := Trunc(((LDetLineA * LDiffLB.X) - (LDiffLA.X * LDetLineB)) * LDetDivInv);
    164   Intersection.Y := Trunc(((LDetLineA * LDiffLB.Y) - (LDiffLA.Y * LDetLineB)) * LDetDivInv);
     163  Intersection.X := Round(((LDetLineA * LDiffLB.X) - (LDiffLA.X * LDetLineB)) * LDetDivInv);
     164  Intersection.Y := Round(((LDetLineA * LDiffLB.Y) - (LDiffLA.Y * LDetLineB)) * LDetDivInv);
    165165  Result := True;
    166166end;
Note: See TracChangeset for help on using the changeset viewer.