From d59693f24f0beedfc81ef35e0f94986efcb3d132 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Sat, 14 Jan 2012 13:32:15 +0200 Subject: [PATCH] Use a different way to get the total number of bones. Fixes the console spam issue when developer mode is enabled --- qcsrc/common/util.qh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2