summaryrefslogtreecommitdiff
path: root/xd.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2018-10-29 08:24:26 +0000
committerIan C <ianc@noddybox.co.uk>2018-10-29 08:24:26 +0000
commitf896427b1cfe6b00f10756b34c2e417638dac3eb (patch)
tree4320f65e946e370308003b0218346204817a0a39 /xd.c
parent732032beb1c75cf84a56d4a14fc2d0cf824c6d20 (diff)
Tweaked look in coaster demo.
Diffstat (limited to 'xd.c')
-rw-r--r--xd.c8
1 files 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;
}