]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
RJZ: Fix bug where shards are reset when someone goes to spect
authorz411 <z411@omaera.org>
Fri, 15 Oct 2021 22:51:15 +0000 (19:51 -0300)
committerz411 <z411@omaera.org>
Fri, 15 Oct 2021 22:51:15 +0000 (19:51 -0300)
qcsrc/server/client.qc

index d3a27116ffa0ed15ac73939e24b9e4541305c9fd..2902df3f3b5897e13bd419837d36ca315f53f722 100644 (file)
@@ -409,10 +409,8 @@ void PutObserverInServer(entity this, bool is_forced)
                CS(this).just_joined = false;
        
        // for RJZ
-       if (autocvar_g_count_shards) {
-               total_shards = 0;
+       if (autocvar_g_count_shards)
                send_TotalShards(this);
-       }
 }
 
 int player_getspecies(entity this)