]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/main.qc
Self: purge
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qc
index 464ae689a14186f20486fb35ad9de835eb72d418..7682198338308463520b72a815e03e4b8cd91b0d 100644 (file)
@@ -330,8 +330,8 @@ float CSQC_InputEvent(float bInputType, float nPrimary, float nSecondary)
 .void(entity) predraw_qc;
 void PreDraw_self()
 {
-       if(self.predraw_qc)
-               self.predraw_qc(self);
+       SELFPARAM();
+       if (this.predraw_qc) this.predraw_qc(this);
 }
 
 void setpredraw(entity this, void(entity) pdfunc)