X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fimage.qc;h=f99fc5d94c30079c5c77cc04f07524297d8d99f1;hb=bc50c2d7ca3e0a44ed1712400ef8e170e6df8210;hp=9f0de67b8a1deb592ddf0aff2eb8c6f5b03097d0;hpb=bb80a6aba067167c6ef8d5f3465f03bd34142fa2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/image.qc b/qcsrc/menu/xonotic/image.qc index 9f0de67b8..f99fc5d94 100644 --- a/qcsrc/menu/xonotic/image.qc +++ b/qcsrc/menu/xonotic/image.qc @@ -1,15 +1,9 @@ -#ifdef INTERFACE -CLASS(XonoticImage) EXTENDS(Image) - METHOD(XonoticImage, configureXonoticImage, void(entity, string, float)) -ENDCLASS(XonoticImage) -entity makeXonoticImage(string theImage, float theAspect); -#endif +#include "image.qh" -#ifdef IMPLEMENTATION entity makeXonoticImage(string theImage, float theAspect) { entity me; - me = spawnXonoticImage(); + me = NEW(XonoticImage); me.configureXonoticImage(me, theImage, theAspect); return me; } @@ -18,4 +12,3 @@ void XonoticImage_configureXonoticImage(entity me, string theImage, float theAsp me.configureImage(me, theImage); me.forcedAspect = theAspect; } -#endif