X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Futil.qh;h=76b2f28d1a71afad3fce9740b3109acde4139848;hb=dbdc35464a18f62bf550a20eddac9ec16b0eacee;hp=485e190b9e47b0550a4e5cbaf3e809357f7548b8;hpb=97e0c02d47dbc3b979671a295f1c25a21f76cb37;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 485e190b9..76b2f28d1 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -168,8 +168,10 @@ void check_unacceptable_compiler_bugs(); float compressShotOrigin(vector v); vector decompressShotOrigin(float f); +#ifdef SVQC string rankings_reply, ladder_reply, lsmaps_reply, lsnewmaps_reply, maplist_reply; // cached replies string records_reply[10]; +#endif float RandomSelection_totalweight; float RandomSelection_best_priority; @@ -291,6 +293,12 @@ float InterpretBoolean(string input); // generic shutdown handler void Shutdown(); +#ifndef MENUQC +.float skeleton_bones; +void Skeleton_SetBones(entity e); +// loops through the tags of model v using counter tagnum +#define FOR_EACH_TAG(v) float tagnum; Skeleton_SetBones(v); for(tagnum = 0; tagnum < v.skeleton_bones; tagnum++, gettaginfo(v, tagnum)) +#endif #ifdef SVQC void WriteApproxPastTime(float dst, float t); #endif