From: Mircea Kitsune Date: Sat, 14 Jan 2012 11:32:15 +0000 (+0200) Subject: Use a different way to get the total number of bones. Fixes the console spam issue... X-Git-Tag: xonotic-v0.6.0~110^2^2~20 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d59693f24f0beedfc81ef35e0f94986efcb3d132;p=xonotic%2Fxonotic-data.pk3dir.git Use a different way to get the total number of bones. Fixes the console spam issue when developer mode is enabled --- diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index ea4178823..772be86e0 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -293,7 +293,7 @@ void Shutdown(); #ifndef MENUQC // loops through the tags of model v using counter tagnum -#define FOR_EACH_TAG(v) float tagnum; for(tagnum = 0;; tagnum++, gettaginfo(v, tagnum)) if(tagnum && !gettaginfo_name) break; else +#define FOR_EACH_TAG(v) float tagnum, totalbones; totalbones = skel_get_numbones(skel_create(v.modelindex)); skel_delete(v.modelindex); for(tagnum = 0, gettaginfo(v, tagnum); tagnum < totalbones; tagnum++, gettaginfo(v, tagnum)) #endif #ifdef SVQC void WriteApproxPastTime(float dst, float t);