]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Properly initialize ReplicateVars_time
authorterencehill <piuntn@gmail.com>
Mon, 18 Apr 2022 22:48:29 +0000 (00:48 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 18 Apr 2022 22:50:47 +0000 (00:50 +0200)
qcsrc/lib/replicate.qh

index e2e34b19714fa79522f6b6a04f602bd49e14ceb0..675d743c1892826940c6a8cb6b5b5924629289ce 100644 (file)
@@ -53,8 +53,8 @@ const int REPLICATEVARS_DESTROY = 1; // destroy data associated with cvars (shut
        {
                if (!ReplicateVars_time) // make sure it gets executed only once
                {
-                       ReplicateVars(REPLICATEVARS_SEND_ALL);
                        ReplicateVars_time = time;
+                       ReplicateVars(REPLICATEVARS_SEND_ALL);
                }
        }
        #endif