summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2020-05-15 09:43:46 +0000
committerIan C <ianc@noddybox.co.uk>2020-05-15 09:43:46 +0000
commitd6de0956f7e596a1aafc644f6b2763cc4dcc2aa9 (patch)
tree4b2c5a6cf92086da3cf53feebc8af86b10de59c4 /util.c
parent9b1b68aa50bdaf2ef85d494731254a8318bcb780 (diff)
Small tweak to game won screen.
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c
index 4acb5d4..736ea47 100644
--- a/util.c
+++ b/util.c
@@ -119,7 +119,7 @@ void WinScreen()
typedef struct
{
- int x,y,yi;
+ double x,y,yi;
} Star;
Star *star;
@@ -140,7 +140,7 @@ void WinScreen()
do
{
- star[f].yi = rand() % 3;
+ star[f].yi = (double)(rand() % 20) / 10.0;
} while(star[f].yi == 0);
}
@@ -163,7 +163,7 @@ void WinScreen()
do
{
- star[f].yi = rand() % 3;
+ star[f].yi = (double)(rand() % 20) / 10.0;
} while(star[f].yi == 0);
}
}