]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/rainsnow.qc
Cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / rainsnow.qc
index 91dc8bad6afdbba97de195cf3fe75fde12805dc3..f1f320ee6bbd2e3ed449a7dd70b01f88b977405f 100644 (file)
@@ -100,8 +100,8 @@ void Draw_Snow(entity this)
     te_particlesnow(self.origin + self.mins, self.origin + self.maxs, self.velocity, floor(self.count * drawframetime + random()), self.glow_color);
 }
 
-void Ent_RainOrSnow()
-{SELFPARAM();
+NET_HANDLE(ENT_CLIENT_RAINSNOW, bool isnew)
+{
        self.impulse = ReadByte(); // Rain, Snow, or Whatever
        self.origin_x = ReadCoord();
        self.origin_y = ReadCoord();
@@ -113,6 +113,8 @@ void Ent_RainOrSnow()
        self.count = ReadShort() * 10;
        self.glow_color = ReadByte(); // color
 
+       return = true;
+
        self.mins    = -0.5 * self.maxs;
        self.maxs    =  0.5 * self.maxs;
        self.origin  = self.origin - self.mins;