ProcessTrainAnnouncements fix

This commit is contained in:
eray orçunus 2020-06-13 17:33:30 +03:00
parent beb6f3bf80
commit 3231c6c3dd

View file

@ -639,8 +639,8 @@ PlayAnnouncement(uint8 sound, uint8 station)
void void
ProcessTrainAnnouncements(void) ProcessTrainAnnouncements(void)
{ {
for (int i = 0; i < 3; i++) { for (int i = 0; i < ARRAY_SIZE(StationDist); i++) {
for (int j = 0; j < 3; j++) { for (int j = 0; j < ARRAY_SIZE(EngineTrackPosition); j++) {
if (!bTrainArrivalAnnounced[i]) { if (!bTrainArrivalAnnounced[i]) {
float preDist = StationDist[i] - 100.0f; float preDist = StationDist[i] - 100.0f;
if (preDist < 0.0f) if (preDist < 0.0f)