X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fslider_decibels.qc;h=29d2a86ac94425cc4ce88f0da4107735368acd6a;hb=34095b88e7a8d82f83aca8ce1009f9622026d159;hp=07632320ed29d89da88f90d7e914c00576833b35;hpb=cd109cf922bc405155c680582745d645bd057ded;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/slider_decibels.qc b/qcsrc/menu/xonotic/slider_decibels.qc index 07632320e..29d2a86ac 100644 --- a/qcsrc/menu/xonotic/slider_decibels.qc +++ b/qcsrc/menu/xonotic/slider_decibels.qc @@ -1,7 +1,9 @@ #include "../../warpzonelib/mathlib.qh" -#ifdef INTERFACE -CLASS(XonoticDecibelsSlider) EXTENDS(XonoticSlider) +#ifndef SLIDER_DECIBELS_H +#define SLIDER_DECIBELS_H +#include "slider.qc" +CLASS(XonoticDecibelsSlider, XonoticSlider) METHOD(XonoticDecibelsSlider, loadCvars, void(entity)) METHOD(XonoticDecibelsSlider, saveCvars, void(entity)) METHOD(XonoticDecibelsSlider, valueToText, string(entity, float)) @@ -42,7 +44,7 @@ float fromDecibelOfSquare(float f, float mi) entity makeXonoticDecibelsSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar) { entity me; - me = spawnXonoticDecibelsSlider(); + me = NEW(XonoticDecibelsSlider); me.configureXonoticSlider(me, theValueMin, theValueMax, theValueStep, theCvar); return me; }