]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/random.qc
Mark [[eraseable]] most of the common functions in the lib directory. Since many...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / random.qc
index 627fec11a92e1293bec76db098230b0a5fafc7f0..d39cfdcadcfef74b2b74e9513de62690f89ab659 100644 (file)
@@ -1,5 +1,6 @@
 #include "random.qh"
 
+[[eraseable]]
 void RandomSelection_Init()
 {
        RandomSelection_totalweight = 0;
@@ -9,6 +10,7 @@ void RandomSelection_Init()
        RandomSelection_best_priority = -1;
 }
 
+[[eraseable]]
 void RandomSelection_Add(entity e, float f, string s, vector v, float weight, float priority)
 {
        if (priority > RandomSelection_best_priority)
@@ -36,6 +38,7 @@ void RandomSelection_Add(entity e, float f, string s, vector v, float weight, fl
 float DistributeEvenly_amount;
 float DistributeEvenly_totalweight;
 
+[[eraseable]]
 void DistributeEvenly_Init(float amount, float totalweight)
 {
        if (DistributeEvenly_amount)
@@ -47,6 +50,7 @@ void DistributeEvenly_Init(float amount, float totalweight)
        DistributeEvenly_totalweight = totalweight;
 }
 
+[[eraseable]]
 float DistributeEvenly_Get(float weight)
 {
        float f;
@@ -57,6 +61,7 @@ float DistributeEvenly_Get(float weight)
        return f;
 }
 
+[[eraseable]]
 float DistributeEvenly_GetRandomized(float weight)
 {
        float f;
@@ -70,6 +75,7 @@ float DistributeEvenly_GetRandomized(float weight)
 // from the GNU Scientific Library
 float gsl_ran_gaussian_lastvalue;
 float gsl_ran_gaussian_lastvalue_set;
+[[eraseable]]
 float gsl_ran_gaussian(float sigma)
 {
        if (gsl_ran_gaussian_lastvalue_set)