Vectorial1024 / ExpressBusServices

Buses skip stops whenever possible.
https://steamcommunity.com/sharedfiles/filedetails/?id=2262054175
MIT License
9 stars 0 forks source link

Incorrect detection of minibuses #26

Closed Vectorial1024 closed 2 years ago

Vectorial1024 commented 2 years ago

It seems that we are not detecting minibuses correctly. Some buses with a way too high capacity count could depart early because the number of pax alighting was below the quick-depart threshold.

Vectorial1024 commented 2 years ago
bool vehicleIsMinibus = vehicleData.m_transferSize <= 20;

Wrong. This only tells you how many are in the vehicle right now.

You should loop the citizen units and then count the capacity like that.

Vectorial1024 commented 2 years ago

This is now fixed.

We will hold onto this and release this later.