diff options
author | Ian C <ianc@noddybox.co.uk> | 2018-10-29 08:24:26 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2018-10-29 08:24:26 +0000 |
commit | f896427b1cfe6b00f10756b34c2e417638dac3eb (patch) | |
tree | 4320f65e946e370308003b0218346204817a0a39 | |
parent | 732032beb1c75cf84a56d4a14fc2d0cf824c6d20 (diff) |
Tweaked look in coaster demo.
-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; } |