X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fsounds%2Fall.qh;h=b7b296341b5a02ba5829035e158f13ad673cbefe;hb=3018b03b7ad0decee85f2a659783d0b5309fe5a3;hp=02098e8755dc805eec8e8a4605544ca5df34b719;hpb=61f8aa37f6d1ba2c2710e5aaf6728ebe360877a0;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/sounds/all.qh b/qcsrc/common/sounds/all.qh index 02098e875..b7b296341 100644 --- a/qcsrc/common/sounds/all.qh +++ b/qcsrc/common/sounds/all.qh @@ -1,9 +1,8 @@ -#ifndef SOUNDS_ALL_H -#define SOUNDS_ALL_H +#pragma once #include "sound.qh" -REGISTRY(Sounds, BITS(8)) +REGISTRY(Sounds, BITS(9)) #define Sounds_from(i) _Sounds_from(i, SND_Null) REGISTER_REGISTRY(Sounds) @@ -15,12 +14,9 @@ REGISTER_REGISTRY(Sounds) #define SND(id) Sound_fixpath(SND_##id) PRECACHE(Sounds) { - FOREACH(Sounds, true, LAMBDA({ - it.sound_precache(it); - })); + FOREACH(Sounds, true, it.sound_precache(it)); } SOUND(Null, "misc/null"); #include "all.inc" #include "all.qc" -#endif