X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fradiobutton.qc;h=05c8238d488b8b460cb6277dcefde8604ce967e1;hb=61a847dbaab291d205cc9684b6d1a6e9bdad6375;hp=85cc4fc5c559a3c56125fcce05e8aef6f1f7bf6e;hpb=d99a102842ced06e6e1a0c9358c07c3b64523968;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/radiobutton.qc b/qcsrc/menu/xonotic/radiobutton.qc index 85cc4fc5c..05c8238d4 100644 --- a/qcsrc/menu/xonotic/radiobutton.qc +++ b/qcsrc/menu/xonotic/radiobutton.qc @@ -1,5 +1,7 @@ -#ifdef INTERFACE -CLASS(XonoticRadioButton) EXTENDS(RadioButton) +#ifndef RADIOBUTTON_H +#define RADIOBUTTON_H +#include "../item/radiobutton.qc" +CLASS(XonoticRadioButton, RadioButton) METHOD(XonoticRadioButton, configureXonoticRadioButton, void(entity, float, string, string, string)) METHOD(XonoticRadioButton, draw, void(entity)) METHOD(XonoticRadioButton, setChecked, void(entity, float)) @@ -27,7 +29,7 @@ entity makeXonoticRadioButton(float, string, string, string); entity makeXonoticRadioButton(float theGroup, string theCvar, string theValue, string theText) { entity me; - me = spawnXonoticRadioButton(); + me = NEW(XonoticRadioButton); me.configureXonoticRadioButton(me, theGroup, theCvar, theValue, theText); return me; }