]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
remove unused global: game_completion_ratio
authorMartin Taibr <taibr.martin@gmail.com>
Sun, 22 Mar 2020 11:01:11 +0000 (12:01 +0100)
committerMartin Taibr <taibr.martin@gmail.com>
Sun, 22 Mar 2020 11:01:11 +0000 (12:01 +0100)
qcsrc/server/defs.qh
qcsrc/server/g_world.qc

index 29621f61d83ff80fc73163281d1a9bd0c33da6f8..910ea215fba139ca510ed535ef094f4102878c53 100644 (file)
@@ -140,7 +140,6 @@ float blockSpectators; //if set, new or existing spectators or observers will be
 .float spectatortime; //point in time since the client is spectating or observing
 void checkSpectatorBlock(entity this);
 
-float game_completion_ratio; // 0 at start, 1 near end
 .float winning;
 .float jointime; // time of connecting
 .float startplaytime; // time of switching from spectator to player
index aa4c5f505ef64290216e1a5dcbc8af5545abbe25..8ec26efd66e740d8fa1616b54b07fc19ca6f5af8 100644 (file)
@@ -1800,9 +1800,6 @@ float WinningCondition_Scores(float limit, float leadlimit)
                        limitreached = (limitreached || leadlimitreached);
        }
 
-       if(limit)
-               game_completion_ratio = max(game_completion_ratio, bound(0, WinningConditionHelper_topscore / limit, 1));
-
        return GetWinningCode(
                WinningConditionHelper_topscore && limitreached,
                WinningConditionHelper_equality
@@ -1940,11 +1937,6 @@ void CheckRules_World()
        float wantovertime;
        wantovertime = 0;
 
-       if(timelimit > game_starttime)
-               game_completion_ratio = (time - game_starttime) / (timelimit - game_starttime);
-       else
-               game_completion_ratio = 0;
-
        if(checkrules_suddendeathend)
        {
                if(!checkrules_suddendeathwarning)