]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/crosshairpreview.qc
Do not hardcode dirty fix for aliased gametype icons, instead offer a new menu theme...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / crosshairpreview.qc
index b271f4dab39093703e36737d7e544646beb3fbd2..f8de85798258502c058575e14f7afc05a120161d 100644 (file)
@@ -1,5 +1,7 @@
-#ifdef INTERFACE
-CLASS(XonoticCrosshairPreview) EXTENDS(Item)
+#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)
@@ -14,7 +16,7 @@ entity makeXonoticCrosshairPreview();
 entity makeXonoticCrosshairPreview()
 {
        entity me;
-       me = spawnXonoticCrosshairPreview();
+       me = NEW(XonoticCrosshairPreview);
        me.configureXonoticCrosshairPreview(me);
        return me;
 }