]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/replicate.qh
Merge branch 'drjaska/2809-splashdmgforcecalcfix' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / replicate.qh
index 470d56aa039f72ce71d7d66b2ffc69fbb2dce198..675d743c1892826940c6a8cb6b5b5924629289ce 100644 (file)
@@ -51,8 +51,11 @@ const int REPLICATEVARS_DESTROY = 1; // destroy data associated with cvars (shut
        }
        void ReplicateVars_Start()
        {
-               ReplicateVars_time = time;
-               ReplicateVars(REPLICATEVARS_SEND_ALL);
+               if (!ReplicateVars_time) // make sure it gets executed only once
+               {
+                       ReplicateVars_time = time;
+                       ReplicateVars(REPLICATEVARS_SEND_ALL);
+               }
        }
        #endif