]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile
authorMario <mario.mario@y7mail.com>
Thu, 26 Dec 2019 02:33:19 +0000 (12:33 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 26 Dec 2019 02:33:19 +0000 (12:33 +1000)
qcsrc/common/mapobjects/func/rainsnow.qc

index e348599f3b5c018915afe997d79bcfca0091a8d0..8414700a70e89f31b5c26b09dd6c40101d56c1f6 100644 (file)
@@ -126,7 +126,7 @@ void Draw_Snow(entity this)
 
        if(boxesoverlap(view_origin - maxdist, view_origin + maxdist, this.absmin, this.absmax))
        //if(autocvar_cl_rainsnow_maxdrawdist <= 0 || vdist(vec2(this.origin) - vec2(this.absmin + this.absmax * 0.5), <=, autocvar_cl_rainsnow_maxdrawdist))
-       te_particlesnow(effbox_min, effbox_max, this.velocity, floor(this.count * drawframetime + random()), this.glow_color);
+       te_particlesnow(effbox_min, effbox_max, this.velocity, floor(mycount * drawframetime + random()), this.glow_color);
 }
 
 NET_HANDLE(ENT_CLIENT_RAINSNOW, bool isnew)