]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/csqcmodel/cl_model.qc
Cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / csqcmodel / cl_model.qc
index 8d3d4ab930745485c165aeb88eb27a2be8465b43..a656fb7908bb39cb6e5a4cf03b1486ec4b0f196a 100644 (file)
@@ -209,8 +209,8 @@ void CSQCModel_Draw()
        self.csqcmodel_teleported = 0;
 }
 
-void CSQCModel_Read(bool isnew)
-{SELFPARAM();
+NET_HANDLE(ENT_CLIENT_MODEL, bool isnew)
+{
        int sf = ReadInt24_t();
 
        // some nice flags for CSQCMODEL_IF and the hooks
@@ -279,6 +279,7 @@ void CSQCModel_Read(bool isnew)
        // draw it
        self.drawmask = MASK_NORMAL;
        self.predraw = CSQCModel_Draw;
+       return true;
 }
 
 entity CSQCModel_server2csqc(float pl)