X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fsounds%2Fsound.qh;h=8c4aecbda029829c753e9b1641ceeb490cc04259;hb=6c3362162e191402de680067e86ced4331550117;hp=519f910b0d3fee4721a698c549a59316841d658b;hpb=cff3504ad5e8ace014ea44de7ad04ad6e246a277;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/sounds/sound.qh b/qcsrc/common/sounds/sound.qh index 519f910b0..8c4aecbda 100644 --- a/qcsrc/common/sounds/sound.qh +++ b/qcsrc/common/sounds/sound.qh @@ -1,5 +1,4 @@ -#ifndef SOUND_H -#define SOUND_H +#pragma once // negative = SVQC autochannels // positive = one per entity @@ -94,8 +93,8 @@ const float VOL_MUFFLED = 0.35; } MACRO_END CLASS(Sound, Object) - ATTRIB(Sound, m_id, int, 0) - ATTRIB(Sound, sound_str, string(), func_null) + ATTRIB(Sound, m_id, int, 0); + ATTRIB(Sound, sound_str, string()); CONSTRUCTOR(Sound, string() path) { CONSTRUCT(Sound); @@ -115,7 +114,7 @@ CLASS(Sound, Object) /**/ #define tryext(ext) { string s = strcat(base, "." #ext); if (fexists(strcat("sound/", s))) return s; } extensions(tryext); - LOG_WARNINGF("Missing sound: \"%s\"\n", strcat("sound/", base)); + LOG_WARNF("Missing sound: \"%s\"", strcat("sound/", base)); #undef tryext #undef extensions return string_null; @@ -126,9 +125,7 @@ CLASS(Sound, Object) TC(Sound, this); string s = Sound_fixpath(this); if (!s) return; - profile(sprintf("precache_sound(\"%s\")\n", s)); + profile(sprintf("precache_sound(\"%s\")", s)); precache_sound(s); } ENDCLASS(Sound) - -#endif