summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}