Fix building

This commit is contained in:
Michał Janiszewski committed 2017-11-26 21:24:57 +01:00
1 parent b7ecaf6ae0
commit 14f39e189d
4 files changed
+13 -5

No files matched your search

+4 -2
View File
@@ -14,6 +14,8 @@
*****************************************************************************/
#pragma endregion
#include <limits>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/audio/audio.h>
@@ -1446,8 +1448,8 @@ static void window_ride_update_overall_view(uint8 ride_index) {
tile_element_iterator_begin(&it);
sint32 minx = INT_MAX, miny = INT_MAX, minz = INT_MAX;
sint32 maxx = INT_MIN, maxy = INT_MIN, maxz = INT_MIN;
sint32 minx = std::numeric_limits<sint32>::max(), miny = std::numeric_limits<sint32>::max(), minz = std::numeric_limits<sint32>::max();
sint32 maxx = std::numeric_limits<sint32>::min(), maxy = std::numeric_limits<sint32>::min(), maxz = std::numeric_limits<sint32>::min();
while (tile_element_iterator_next(&it)) {
if (tile_element_get_type(it.element) != TILE_ELEMENT_TYPE_TRACK)
+4 -2
View File
@@ -14,6 +14,8 @@
*****************************************************************************/
#pragma endregion
#include <limits>
#include "../Context.h"
#include "../OpenRCT2.h"
#include "../audio/AudioMixer.h"
@@ -13703,7 +13705,7 @@ static void peep_head_for_nearest_ride_type(rct_peep * peep, sint32 rideType)
// Pick the closest ride
sint32 closestRideIndex = -1;
sint32 closestRideDistance = INT_MAX;
sint32 closestRideDistance = std::numeric_limits<sint32>::max();
for (sint32 i = 0; i < numPotentialRides; i++)
{
ride = get_ride(potentialRides[i]);
@@ -13835,7 +13837,7 @@ static void peep_head_for_nearest_ride_with_flags(rct_peep * peep, sint32 rideTy
// Pick the closest ride
sint32 closestRideIndex = -1;
sint32 closestRideDistance = INT_MAX;
sint32 closestRideDistance = std::numeric_limits<sint32>::max();
for (sint32 i = 0; i < numPotentialRides; i++)
{
ride = get_ride(potentialRides[i]);
+2
View File
@@ -14,6 +14,8 @@
*****************************************************************************/
#pragma endregion
#include <limits.h>
#include "../audio/audio.h"
#include "../audio/AudioMixer.h"
#include "../cheats.h"
+3 -1
View File
@@ -14,6 +14,8 @@
*****************************************************************************/
#pragma endregion
#include <limits>
#include "../core/Math.hpp"
#include "../core/Memory.hpp"
#include "../core/Util.hpp"
@@ -513,7 +515,7 @@ extern "C"
}
rideIndex = -1;
sint32 resultDistance = INT_MAX;
sint32 resultDistance = std::numeric_limits<sint32>::max();
FOR_ALL_RIDES(i, ride)
{
if (ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_IS_SHOP))