summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLAMMJohnson <john_anthony@lavabit.com>2011-04-26 20:41:41 +0100
committerLAMMJohnson <john_anthony@lavabit.com>2011-04-26 20:41:41 +0100
commitfcb47a91c17d0d4e65c719892ebac1c87d12ddd6 (patch)
tree8c36d5ee935ff357156acfa3e074c40de42bcdbf
parentbf02e8bb5c2714394a33045e90e859a7d0f5e0d4 (diff)
downloadnyancat-fcb47a91c17d0d4e65c719892ebac1c87d12ddd6.tar.gz
nyancat-fcb47a91c17d0d4e65c719892ebac1c87d12ddd6.tar.bz2
nyancat-fcb47a91c17d0d4e65c719892ebac1c87d12ddd6.zip
Fixed sparkle speed
-rw-r--r--nyah.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nyah.c b/nyah.c
index 53da798..743aba9 100644
--- a/nyah.c
+++ b/nyah.c
@@ -60,9 +60,9 @@ add_sparkle(void) {
new->loc.x = SCREEN_WIDTH + 80;
new->loc.y = (rand() % (SCREEN_HEIGHT + sparkle_img[0]->h)) - sparkle_img[0]->h;
- new->frame = rand() % 5;
+ new->frame = rand() % 4;
new->frame_mov = 1;
- new->speed = 80 + (rand() % 120);
+ new->speed = 10 + (rand() % 30);
new->layer = rand() % 2;
new->next = NULL;
@@ -210,8 +210,8 @@ update_sparkles(void) {
if(s->frame > 3 || s->frame < 1)
s->frame_mov = 0 - s->frame_mov;
- /* if (s->loc.x < 0 - sparkle_img[0]->w) */
- /* remove_sparkle(s); */
+ if (s->loc.x < 0 - sparkle_img[0]->w)
+ remove_sparkle(s);
s = next;
}