summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c
index 92a4ba0..4acb5d4 100644
--- a/util.c
+++ b/util.c
@@ -119,7 +119,7 @@ void WinScreen()
typedef struct
{
- double x,y,yi;
+ int x,y,yi;
} Star;
Star *star;
@@ -140,7 +140,7 @@ void WinScreen()
do
{
- star[f].yi = DRand() * 2;
+ star[f].yi = rand() % 3;
} while(star[f].yi == 0);
}
@@ -163,7 +163,7 @@ void WinScreen()
do
{
- star[f].yi = DRand() * 2;
+ star[f].yi = rand() % 3;
} while(star[f].yi == 0);
}
}