diff options
-rw-r--r-- | xd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4727,7 +4727,7 @@ static void CoasterDemo(void) } else { - ang_x = atan(fabs(coaster[0].dy) / COASTER_Z_INC); + ang_x = atan(fabs(coaster[20].dy) / COASTER_Z_INC); if (isnan(ang_x)) { @@ -4737,13 +4737,13 @@ static void CoasterDemo(void) { ang_x = DEG(ang_x) * 10.0; - if (coaster[0].dy > 0) + if (coaster[20].dy > 0) { ang_x = -ang_x; } } - ang_y = atan(fabs(coaster[0].dx) / COASTER_Z_INC); + ang_y = atan(fabs(coaster[20].dx) / COASTER_Z_INC); if (isnan(ang_y)) { @@ -4753,7 +4753,7 @@ static void CoasterDemo(void) { ang_y = DEG(ang_y) * 10.0; - if (coaster[0].dx > 0) + if (coaster[20].dx > 0) { ang_y = -ang_y; } |