Skip to content

Commit 4fcd4af

Browse files
committed
- fix 6th Chicago train not running
1 parent 9313be6 commit 4fcd4af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src_rebuild/Game/C/event.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ void SetUpEvents(int full)
10921092
missionTrain[1].engine = missionTrain[0].engine;
10931093

10941094
// add trains
1095-
while (n < count-1)
1095+
while (n < count)
10961096
{
10971097
// randomize carriage count
10981098
if (n != 0)
@@ -4028,7 +4028,7 @@ void MultiCarEvent(MS_TARGET* target)
40284028
ev->position.vx = mcd->x;
40294029
ev->position.vz = mcd->z;
40304030

4031-
ev->position.vy = -312;
4031+
ev->position.vy = -312; // MapHeight may not be available due to region is not yet loaded
40324032

40334033
ev->rotation = mcd->rot;
40344034

0 commit comments

Comments
 (0)