]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/buffs.qh
Merge branch 'master' into TimePath/guide
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / buffs.qh
index 87dff12a0c4b54d78d331a3cec3995a8292ed17c..e0bda4c677c8c6e025eb720df1d577de330f7817 100644 (file)
@@ -33,12 +33,11 @@ CLASS(Buff, Pickup)
        ATTRIB(Buff, m_prettyName, string, "Buff")
        ATTRIB(Buff, m_skin, int, 0)
        ATTRIB(Buff, m_sprite, string, "")
-       METHOD(Buff, display, void(entity this, void(string name, string icon) returns))
-       void Buff_display(entity this, void(string name, string icon) returns) {
+       METHOD(Buff, display, void(entity this, void(string name, string icon) returns)) {
                returns(this.m_prettyName, sprintf("/gfx/hud/%s/buff_%s", cvar_string("menu_skin"), this.m_name));
        }
 #ifdef SVQC
-       METHOD(Buff, m_time, float(entity))
+       METHOD(Buff, m_time, float(entity));
        float Buff_m_time(entity this) { return cvar(strcat("g_buffs_", this.netname, "_time")); }
 #endif
 ENDCLASS(Buff)