From 1e2ed3b25907e23d22ea23613dfbc4f51df3d10c Mon Sep 17 00:00:00 2001 From: stainless <> Date: Thu, 15 Nov 2001 05:52:44 +0000 Subject: [PATCH] Intensified water effect B with incremental seeding. --- zsnes/src/water.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/zsnes/src/water.c b/zsnes/src/water.c index 3350d1a6..0f242222 100644 --- a/zsnes/src/water.c +++ b/zsnes/src/water.c @@ -24,6 +24,7 @@ #include #include #include +#include #endif #include "fixsin.h" @@ -82,7 +83,7 @@ void DrawWater(void) if (GUIEffect==2) { mode=0x0001; } else { mode = 0x0004; } - if(mode&2) // && (tscurrent-tslast)) + if(mode&2) // && (tscurrent-tslast)) { int x,y; x=rand()%(SCRW-2)+1; @@ -136,7 +137,8 @@ void DrawWater(void) if(mode&4) { - if(rand()%20 == 0) + srand(time(0)); + if(rand()%20 == 0) { /* if(mode & 0x4000) @@ -146,7 +148,7 @@ void DrawWater(void) SineBlob(-1, -1, radius, -pheight*6, Hpage); } } - CalcWater(Height[Hpage^1], Height[Hpage], density); + CalcWater(Height[Hpage^1], Height[Hpage], density); Hpage ^= 1; /* flip flop */ }