summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xd.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/xd.c b/xd.c
index 167e43b..7246c5c 100644
--- a/xd.c
+++ b/xd.c
@@ -2083,14 +2083,26 @@ static void StarDemo(void)
star[f].origin.z-=20*speed;
if (star[f].col)
+ {
star[f].col--;
+ }
}
}
for(f=0;f<no_obj;f++)
{
obj[f].origin.z-=100*speed;
- obj[f].z_rot+=10;
+
+ if (f&1)
+ {
+ obj[f].z_rot += 3590;
+ }
+ else
+ {
+ obj[f].z_rot += 10;
+ }
+
+ obj[f].z_rot = obj[f].z_rot % 3600;
if (obj[f].col)
{