]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/crosshairpreview.qc
Header police
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / crosshairpreview.qc
index b271f4dab39093703e36737d7e544646beb3fbd2..817e452a101a8c09151997002a9435a25d989045 100644 (file)
@@ -1,7 +1,10 @@
-#ifdef INTERFACE
-CLASS(XonoticCrosshairPreview) EXTENDS(Item)
-       METHOD(XonoticCrosshairPreview, configureXonoticCrosshairPreview, void(entity))
-       METHOD(XonoticCrosshairPreview, draw, void(entity))
+#include "crosshairpreview.qh"
+#ifndef CROSSHAIRPREVIEW_H
+#define CROSSHAIRPREVIEW_H
+#include "../item.qc"
+CLASS(XonoticCrosshairPreview, Item)
+       METHOD(XonoticCrosshairPreview, configureXonoticCrosshairPreview, void(entity));
+       METHOD(XonoticCrosshairPreview, draw, void(entity));
        ATTRIB(XonoticCrosshairPreview, src, string, string_null)
        ATTRIB(XonoticCrosshairPreview, src2, string, string_null)
        ATTRIB(XonoticCrosshairPreview, disabled, float, 0)
@@ -14,7 +17,7 @@ entity makeXonoticCrosshairPreview();
 entity makeXonoticCrosshairPreview()
 {
        entity me;
-       me = spawnXonoticCrosshairPreview();
+       me = NEW(XonoticCrosshairPreview);
        me.configureXonoticCrosshairPreview(me);
        return me;
 }