]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/anim/easing.qc
Merge CLASS and EXTENDS, #define NEW(cname) (spawn##cname())
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / anim / easing.qc
index 94ea9cf0872da839e836be94e28cda460f029bab..9856c2385fa830c1b171a7a2b3ef966eb4658cbd 100644 (file)
@@ -1,5 +1,5 @@
 #ifdef INTERFACE
-CLASS(Easing) EXTENDS(Animation)
+CLASS(EasingAnimation)
        METHOD(Easing, calcValue, float(entity, float, float, float, float))
        METHOD(Easing, setMath, void(entity, float(float, float, float, float)))
        ATTRIB(Easing, math, float(float, float, float, float), easingLinear)
@@ -24,7 +24,7 @@ entity makeHostedEasing(entity obj, void(entity, float) objSetter, float(float,
 entity makeEasing(entity obj, void(entity, float) objSetter, float(float, float, float, float) func, float animStartTime, float animDuration, float animStartValue, float animEnd)
 {
        entity me;
-       me = spawnEasing();
+       me = NEW(Easing);
        me.configureAnimation(me, obj, objSetter, animStartTime, animDuration, animStartValue, animEnd);
        me.setMath(me, func);
        return me;