1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Fix calcutation of number of riders on import

Made a little mistake with this last time. This will now use the same logic as the Guest List window and the increment/decrement counters.
This commit is contained in:
Michael Steenbeek
2018-03-13 11:45:06 +01:00
parent 33a6a5a994
commit bf580625f8

View File

@@ -828,7 +828,8 @@ public:
{
if (sprite.unknown.sprite_identifier == SPRITE_IDENTIFIER_PEEP)
{
if (sprite.peep.state == PEEP_STATE_ON_RIDE && sprite.peep.current_ride == rideIndex)
if (sprite.peep.current_ride == rideIndex &&
(sprite.peep.state == PEEP_STATE_ON_RIDE || sprite.peep.state == PEEP_STATE_ENTERING_RIDE))
{
numRiders++;
}