From f896427b1cfe6b00f10756b34c2e417638dac3eb Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 29 Oct 2018 08:24:26 +0000 Subject: Tweaked look in coaster demo. --- xd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xd.c b/xd.c index c37d1ef..35f4bca 100644 --- a/xd.c +++ b/xd.c @@ -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; } -- cgit v1.2.3