1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix #11963 - Refactor Peep::OutsideOfPark (#12060)

* Fix #11963 - Refactor Peep::OutsideOfPark

Changed the definition of Peep::OutsideOfPark from uint8_t to bool and refactored all its occurences in code accordingly.

* Fix #11963 - Refactor Peep::OutsideOfPark

One forgotten instance of Peep::OutsideOfPark occurrence

* Fix #11963 - Refactor Peep::OutsideOfPark

Fix code according to a review suggestion.
This commit is contained in:
TomasZilinek
2020-06-28 09:39:30 +02:00
committed by GitHub
parent d4a35c5c16
commit f08206a5d0
13 changed files with 35 additions and 35 deletions

View File

@@ -72,7 +72,7 @@ protected:
// Peeps that are outside of the park use specialized pathfinding which we don't want to
// use here
peep->OutsideOfPark = 0;
peep->OutsideOfPark = false;
// An earlier iteration of this code just gave peeps a target position to walk to, but it turns out
// that with no actual ride to head towards, when a peep reaches a junction they use the 'aimless'