summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-10 03:05:51 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-10 03:05:51 +0100
commitdf7823280c2ef3096581741a3412b9b721a7e616 (patch)
tree16162b82ec8c8d1a21a851d04f7102c5f3c8c327 /source/cWorld.cpp
parentStorms were WAY too frequent. I toned them down. (diff)
downloadcuberite-df7823280c2ef3096581741a3412b9b721a7e616.tar
cuberite-df7823280c2ef3096581741a3412b9b721a7e616.tar.gz
cuberite-df7823280c2ef3096581741a3412b9b721a7e616.tar.bz2
cuberite-df7823280c2ef3096581741a3412b9b721a7e616.tar.lz
cuberite-df7823280c2ef3096581741a3412b9b721a7e616.tar.xz
cuberite-df7823280c2ef3096581741a3412b9b721a7e616.tar.zst
cuberite-df7823280c2ef3096581741a3412b9b721a7e616.zip
Diffstat (limited to '')
-rw-r--r--source/cWorld.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp
index d914cf05d..65c35535b 100644
--- a/source/cWorld.cpp
+++ b/source/cWorld.cpp
@@ -394,7 +394,7 @@ void cWorld::Tick(float a_Dt)
////////////////Weather///////////////////////
if ( GetWeather() == 0 ) { //if sunny
if( CurrentTick % 19 == 0 ) { //every 20 ticks random weather
- randWeather = (rand() %1000);
+ randWeather = (rand() %10000);
if (randWeather == 0) {
LOG("Starting Rainstorm!");
SetWeather ( 1 );
@@ -407,11 +407,11 @@ void cWorld::Tick(float a_Dt)
if ( GetWeather() != 0 ) { //if raining or thunderstorm
if( CurrentTick % 19 == 0 ) { //every 20 ticks random weather
- randWeather = (rand() %499);
+ randWeather = (rand() %4999);
if (randWeather == 0) { //2% chance per second
LOG("Back to sunny!");
SetWeather ( 0 );
- } else if ( (randWeather > 400) && (GetWeather() != 2) ) { //random chance for rainstorm to turn into thunderstorm.
+ } else if ( (randWeather > 4000) && (GetWeather() != 2) ) { //random chance for rainstorm to turn into thunderstorm.
LOG("Starting Thunderstorm!");
SetWeather ( 2 );
}