From: Rudolf Polzer Date: Sat, 19 Nov 2011 14:48:02 +0000 (+0100) Subject: rain: also draw rain when fps are high :P X-Git-Tag: xonotic-v0.6.0~35^2~51 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7f21b3b578d5a23db17d5b06c0b65c60b1f8f1b2;p=xonotic%2Fxonotic-data.pk3dir.git rain: also draw rain when fps are high :P --- diff --git a/qcsrc/client/particles.qc b/qcsrc/client/particles.qc index b7233eee1..6e24893b0 100644 --- a/qcsrc/client/particles.qc +++ b/qcsrc/client/particles.qc @@ -191,12 +191,12 @@ void Ent_PointParticles() .float glow_color; // palette index void Draw_Rain() { - te_particlerain(self.origin + self.mins, self.origin + self.maxs, self.velocity, self.count * drawframetime, self.glow_color); + te_particlerain(self.origin + self.mins, self.origin + self.maxs, self.velocity, floor(self.count * drawframetime + random()), self.glow_color); } void Draw_Snow() { - te_particlesnow(self.origin + self.mins, self.origin + self.maxs, self.velocity, self.count * drawframetime, self.glow_color); + te_particlesnow(self.origin + self.mins, self.origin + self.maxs, self.velocity, floor(self.count * drawframetime + random()), self.glow_color); } void Ent_RainOrSnow()