From: Mario Date: Sat, 26 May 2018 08:06:33 +0000 (+1000) Subject: Fix rain maths so it isn't multiplied too much X-Git-Tag: xonotic-v0.8.5~2128 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8d0883415076ecdc66c1ee4c8013dda9ef8be38f;p=xonotic%2Fxonotic-data.pk3dir.git Fix rain maths so it isn't multiplied too much --- diff --git a/qcsrc/common/triggers/func/rainsnow.qc b/qcsrc/common/triggers/func/rainsnow.qc index ff49eca2c..c765a4293 100644 --- a/qcsrc/common/triggers/func/rainsnow.qc +++ b/qcsrc/common/triggers/func/rainsnow.qc @@ -44,7 +44,7 @@ spawnfunc(func_rain) if (!this.count) this.count = 2000; // relative to absolute particle count - this.count = this.count * (this.size_x / 1024) * (this.size_y / 1024); + this.count = 0.1 * this.count * (this.size_x / 1024) * (this.size_y / 1024); if (this.count < 1) this.count = 1; if(this.count > 65535) @@ -84,7 +84,7 @@ spawnfunc(func_snow) if (!this.count) this.count = 2000; // relative to absolute particle count - this.count = this.count * (this.size_x / 1024) * (this.size_y / 1024); + this.count = 0.1 * this.count * (this.size_x / 1024) * (this.size_y / 1024); if (this.count < 1) this.count = 1; if(this.count > 65535)