Update formatting for recent changes

This commit is contained in:
Michał Janiszewski 2017-10-30 16:13:07 +01:00 committed by Michał Janiszewski
parent d3a30132a8
commit c7c0c15abf
1 changed files with 13 additions and 14 deletions

View File

@ -14,7 +14,6 @@
*****************************************************************************/ *****************************************************************************/
#pragma endregion #pragma endregion
#include "../core/Util.hpp"
#include "../Context.h" #include "../Context.h"
#include "../OpenRCT2.h" #include "../OpenRCT2.h"
#include "../audio/AudioMixer.h" #include "../audio/AudioMixer.h"
@ -22,6 +21,7 @@
#include "../cheats.h" #include "../cheats.h"
#include "../config/Config.h" #include "../config/Config.h"
#include "../core/Math.hpp" #include "../core/Math.hpp"
#include "../core/Util.hpp"
#include "../game.h" #include "../game.h"
#include "../input.h" #include "../input.h"
#include "../interface/window.h" #include "../interface/window.h"
@ -30,10 +30,10 @@
#include "../management/Marketing.h" #include "../management/Marketing.h"
#include "../management/NewsItem.h" #include "../management/NewsItem.h"
#include "../network/network.h" #include "../network/network.h"
#include "../ride/ride.h"
#include "../ride/ride_data.h"
#include "../ride/Station.h" #include "../ride/Station.h"
#include "../ride/Track.h" #include "../ride/Track.h"
#include "../ride/ride.h"
#include "../ride/ride_data.h"
#include "../scenario/scenario.h" #include "../scenario/scenario.h"
#include "../sprites.h" #include "../sprites.h"
#include "../util/util.h" #include "../util/util.h"
@ -66,8 +66,8 @@ uint32 gNextGuestNumber;
uint8 gPeepWarningThrottle[16]; uint8 gPeepWarningThrottle[16];
LocationXYZ16 gPeepPathFindGoalPosition; LocationXYZ16 gPeepPathFindGoalPosition;
bool gPeepPathFindIgnoreForeignQueues; bool gPeepPathFindIgnoreForeignQueues;
uint8 gPeepPathFindQueueRideIndex; uint8 gPeepPathFindQueueRideIndex;
// uint32 gPeepPathFindAltStationNum; // uint32 gPeepPathFindAltStationNum;
static bool _peepPathFindIsStaff; static bool _peepPathFindIsStaff;
static sint8 _peepPathFindNumJunctions; static sint8 _peepPathFindNumJunctions;
@ -82,7 +82,7 @@ static uint8 _peepPathFindFewestNumSteps;
static struct static struct
{ {
LocationXYZ8 location; LocationXYZ8 location;
uint8 direction; uint8 direction;
} _peepPathFindHistory[16]; } _peepPathFindHistory[16];
static uint8 _unk_F1AEF0; static uint8 _unk_F1AEF0;
@ -3440,7 +3440,6 @@ static void peep_update_ride_sub_state_7(rct_peep * peep)
} }
peep->current_ride_station = ride_station; peep->current_ride_station = ride_station;
rct_ride_entry * ride_entry = get_ride_entry(vehicle->ride_subtype); rct_ride_entry * ride_entry = get_ride_entry(vehicle->ride_subtype);
if (ride_entry == nullptr) if (ride_entry == nullptr)
{ {
return; return;
@ -4778,7 +4777,7 @@ static bool peep_update_fixing_sub_state_1(bool firstRun, rct_peep * peep, Ride
vehicle = GET_VEHICLE(vehicle->prev_vehicle_on_ride); vehicle = GET_VEHICLE(vehicle->prev_vehicle_on_ride);
} }
LocationXY16 offset = word_981D6C[peep->direction]; LocationXY16 offset = word_981D6C[peep->direction];
peep->destination_x = (offset.x * -12) + vehicle->x; peep->destination_x = (offset.x * -12) + vehicle->x;
peep->destination_y = (offset.y * -12) + vehicle->y; peep->destination_y = (offset.y * -12) + vehicle->y;
peep->destination_tolerence = 2; peep->destination_tolerence = 2;
@ -4916,7 +4915,7 @@ static bool peep_update_fixing_sub_state_7(bool firstRun, rct_peep * peep, Ride
return false; return false;
} }
sint32 direction = map_element_get_direction(mapElement); sint32 direction = map_element_get_direction(mapElement);
LocationXY16 offset = _992A3C[direction]; LocationXY16 offset = _992A3C[direction];
stationX += 16 + offset.x; stationX += 16 + offset.x;
@ -10729,9 +10728,9 @@ sint32 peep_pathfind_choose_direction(sint16 x, sint16 y, uint8 z, rct_peep * pe
uint8 best_sub = 0xFF; uint8 best_sub = 0xFF;
#if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1
uint8 bestJunctions = 0; uint8 bestJunctions = 0;
LocationXYZ8 bestJunctionList[16] = { 0 }; LocationXYZ8 bestJunctionList[16] = { 0 };
uint8 bestDirectionList[16] = { 0 }; uint8 bestDirectionList[16] = { 0 };
LocationXYZ8 bestXYZ = { 0, 0, 0 }; LocationXYZ8 bestXYZ = { 0, 0, 0 };
if (gPathFindDebug) if (gPathFindDebug)
@ -10791,9 +10790,9 @@ sint32 peep_pathfind_choose_direction(sint16 x, sint16 y, uint8 z, rct_peep * pe
* of the search path. * of the search path.
* In the future these could be used to visualise the * In the future these could be used to visualise the
* pathfinding on the map. */ * pathfinding on the map. */
uint8 endJunctions = 0; uint8 endJunctions = 0;
LocationXYZ8 endJunctionList[16] = { 0 }; LocationXYZ8 endJunctionList[16] = { 0 };
uint8 endDirectionList[16] = { 0 }; uint8 endDirectionList[16] = { 0 };
bool inPatrolArea = false; bool inPatrolArea = false;
if (peep->type == PEEP_TYPE_STAFF && peep->staff_type == STAFF_TYPE_MECHANIC) if (peep->type == PEEP_TYPE_STAFF && peep->staff_type == STAFF_TYPE_MECHANIC)
@ -11116,7 +11115,7 @@ static sint32 guest_path_find_park_entrance(rct_peep * peep, rct_map_element * m
*/ */
static void get_ride_queue_end(sint16 * x, sint16 * y, sint16 * z) static void get_ride_queue_end(sint16 * x, sint16 * y, sint16 * z)
{ {
LocationXY16 result = { 0, 0 }; LocationXY16 result = { 0, 0 };
rct_map_element * mapElement = map_get_first_element_at(*x / 32, *y / 32); rct_map_element * mapElement = map_get_first_element_at(*x / 32, *y / 32);
if (mapElement == NULL) if (mapElement == NULL)