]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Clean my last commits
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 14 Jan 2012 14:41:08 +0000 (16:41 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 14 Jan 2012 14:41:08 +0000 (16:41 +0200)
qcsrc/common/util.qc
qcsrc/common/util.qh

index 0d07c91407109ef1fed78dc942f81298aafeff66..534eca15c293359aae288018533e5e402b6f4c38 100644 (file)
@@ -2214,17 +2214,17 @@ float ReadApproxPastTime()
 #endif
 
 #ifndef MENUQC
-.float skeletonmodelindex; // used to check if model has changed
+.float skeletonmodelindex; // used to check if the model has changed
 float Update_Skeleton(entity e)
 {
-       // updates the skeleton if needed, and returns the total number of bones
+       // updates the fake skeleton if needed, and returns the total number of bones
        if(e.skeletonmodelindex != e.modelindex)
        {
-               if(e.qc_skeletonindex)
-                       skel_delete(e.qc_skeletonindex);
-               e.qc_skeletonindex = skel_create(e.modelindex);
+               if(e.fake_skeletonindex)
+                       skel_delete(e.fake_skeletonindex);
+               e.fake_skeletonindex = skel_create(e.modelindex);
                e.skeletonmodelindex = e.modelindex;
        }
-       return skel_get_numbones(e.qc_skeletonindex);
+       return skel_get_numbones(e.fake_skeletonindex);
 }
 #endif
index d940833e537bb69a14391bcd3b9d59f9709a8832..cdaf27c73ebe9872b53bb0ad348fc57d1c934ca1 100644 (file)
@@ -292,7 +292,7 @@ float InterpretBoolean(string input);
 void Shutdown();
 
 #ifndef MENUQC
-.float qc_skeletonindex; // maintains a separate skeleton for checking, different than skeletonindex
+.float fake_skeletonindex; // maintains a fake skeleton for property checking without affecting the actual mesh
 float Update_Skeleton(entity e);
 // loops through the tags of model v using counter tagnum
 #define FOR_EACH_TAG(v) float tagnum, tags; tags = Update_Skeleton(v); for(tagnum = 0; tagnum < tags; tagnum++, gettaginfo(v, tagnum))