X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fsounds%2Fall.qh;h=02098e8755dc805eec8e8a4605544ca5df34b719;hb=aa91709ca58a4c44cdcdee7668bc940831c55b78;hp=4ad0e9b102cbc214eaf01876ecd83ba1f9f841c1;hpb=43eba8ca70f00458db385630f86009f6d7fa849a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/sounds/all.qh b/qcsrc/common/sounds/all.qh index 4ad0e9b10..02098e875 100644 --- a/qcsrc/common/sounds/all.qh +++ b/qcsrc/common/sounds/all.qh @@ -5,13 +5,13 @@ REGISTRY(Sounds, BITS(8)) #define Sounds_from(i) _Sounds_from(i, SND_Null) -REGISTER_REGISTRY(RegisterSounds) +REGISTER_REGISTRY(Sounds) #define SOUND(name, path) \ string SND_##name##_get() { return path; } \ - REGISTER(RegisterSounds, SND, Sounds, name, m_id, NEW(Sound, SND_##name##_get)) + REGISTER(Sounds, SND, name, m_id, NEW(Sound, SND_##name##_get)) -// Used in places where a string is required +/** @deprecated Used in places where a string is required for legacy reasons, prefer using SND_id constants instead */ #define SND(id) Sound_fixpath(SND_##id) PRECACHE(Sounds) { @@ -22,5 +22,5 @@ PRECACHE(Sounds) { SOUND(Null, "misc/null"); #include "all.inc" - +#include "all.qc" #endif