X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fscreenshotimage.qc;h=f2eb0b00d7ee6596afe0b9b0cbe62d9a826adee9;hb=61a847dbaab291d205cc9684b6d1a6e9bdad6375;hp=a800a849486aceae4d7651f2adbaf41a4c36db40;hpb=e3507f4fdbc2b3e15b663365e57e0aa60f3cf1a6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/screenshotimage.qc b/qcsrc/menu/xonotic/screenshotimage.qc index a800a8494..f2eb0b00d 100644 --- a/qcsrc/menu/xonotic/screenshotimage.qc +++ b/qcsrc/menu/xonotic/screenshotimage.qc @@ -1,5 +1,7 @@ -#ifdef INTERFACE -CLASS(XonoticScreenshotImage) EXTENDS(XonoticImage) +#ifndef SCREENSHOTIMAGE_H +#define SCREENSHOTIMAGE_H +#include "image.qc" +CLASS(XonoticScreenshotImage, XonoticImage) METHOD(XonoticScreenshotImage, configureXonoticScreenshotImage, void(entity)) METHOD(XonoticScreenshotImage, load, void(entity, string)) METHOD(XonoticScreenshotImage, draw, void(entity)) @@ -21,7 +23,7 @@ entity makeXonoticScreenshotImage(); entity makeXonoticScreenshotImage() { entity me; - me = spawnXonoticScreenshotImage(); + me = NEW(XonoticScreenshotImage); me.configureXonoticScreenshotImage(me); return me; }