freebsd-ports/games/flightgear-terragear/files/patch-tg_misc.cxx
Torsten Zuehlsdorff fed3ef2f5f New port: games/flightgear-terragear
TerraGear is a collection of tools for building scenery for the
FlightGear project.  Generally, the process is done in two steps:

  1. Preprocess the original raw data.  This chops up the data into
     the FG tiling scheme and saves it in a simple, intermediate
     format.

  2. Collect all the different pieces of intermediate data and
     assemble them into a 3d model of the terrain.

WWW: https://github.com/FlightGear/terragear

PR:           223648
Submitted by: Michael Danilov <mike.d.ft402@gmail.com>
2018-04-05 08:50:40 +00:00

20 lines
609 B
C++

--- src/Lib/terragear/tg_misc.cxx.orig 2017-10-07 06:58:20 UTC
+++ src/Lib/terragear/tg_misc.cxx
@@ -112,8 +112,8 @@
ClipperLib::IntPoint min_pt, max_pt;
SGGeod min, max;
- min_pt.X = min_pt.Y = LONG_LONG_MAX;
- max_pt.X = max_pt.Y = LONG_LONG_MIN;
+ min_pt.X = min_pt.Y = LLONG_MAX;
+ max_pt.X = max_pt.Y = LLONG_MIN;
// for each polygon, we need to check the orientation, to set the hole flag...
for (unsigned int i=0; i<subject.size(); i++)
@@ -377,4 +377,4 @@
// handle the no intersection case.
return false;
}
-}
\ No newline at end of file
+}