From: TimePath Date: Sun, 24 Jul 2016 04:49:29 +0000 (+1000) Subject: Reduce weapon impulse verbosity X-Git-Tag: xonotic-v0.8.2~700^2~42 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=10248a1517a8876bb1ed3761156c3a82b8d3d1a9;p=xonotic%2Fxonotic-data.pk3dir.git Reduce weapon impulse verbosity --- diff --git a/qcsrc/common/weapons/all.qh b/qcsrc/common/weapons/all.qh index dd691a692..fa9d64ab8 100644 --- a/qcsrc/common/weapons/all.qh +++ b/qcsrc/common/weapons/all.qh @@ -299,6 +299,7 @@ REGISTRY_CHECK(Weapons) STATIC_INIT(register_weapons_done) { + string inaccessible = ""; FOREACH(Weapons, true, { WepSet set = it.m_wepset = _WepSet_FromWeapon(it.m_id = i); WEPSET_ALL |= set; @@ -309,8 +310,9 @@ STATIC_INIT(register_weapons_done) if (imp <= WEP_IMPULSE_END) localcmd(sprintf("alias weapon_%s \"impulse %d\"\n", it.netname, imp)); else - LOG_TRACEF("Impulse limit exceeded, weapon will not be directly accessible: %s\n", it.netname); + inaccessible = strcat(inaccessible, "\n", it.netname); }); + if (inaccessible) LOG_TRACEF("Impulse limit exceeded, weapon(s) will not be directly accessible: %s\n", inaccessible); #ifdef CSQC FOREACH(Weapons, true, it.wr_init(it)); #endif