]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove CheckRules_Player (empty function, the only incremented field in it was unused...
authorMario <mario@smbclan.net>
Sun, 16 Jul 2017 13:03:29 +0000 (23:03 +1000)
committerMario <mario@smbclan.net>
Sun, 16 Jul 2017 13:03:29 +0000 (23:03 +1000)
qcsrc/common/vehicles/sv_vehicles.qh
qcsrc/server/client.qc
qcsrc/server/defs.qh
qcsrc/server/g_world.qc
qcsrc/server/g_world.qh

index 653532b43dd9ce1f8a143e51770c06120359a9f0..22e2e4859dd170c94f3bf03c571822bb9c496052 100644 (file)
@@ -67,6 +67,8 @@ const float VHSF_FACTORY = 2;
 .int hud = _STAT(HUD);
 .float dmg_time;
 
+.float play_time;
+
 .int volly_counter;
 
 const int MAX_AXH = 4;
index 9b105a28aec00d5ab6e31d3d61b79b8dee762481..490b41157f1db6fb77591f7c39a3e9b0fa02fd0d 100644 (file)
@@ -2110,8 +2110,6 @@ bool joinAllowed(entity this)
 .int items_added;
 bool PlayerThink(entity this)
 {
-       CheckRules_Player(this);
-
        if (game_stopped || intermission_running) {
                this.modelflags &= ~MF_ROCKET;
                if(intermission_running)
@@ -2733,7 +2731,6 @@ void PlayerPostThink (entity this)
 
        if (IS_PLAYER(this)) {
                DrownPlayer(this);
-               CheckRules_Player(this);
                UpdateChatBubble(this);
                if (CS(this).impulse) ImpulseCommands(this);
                if (game_stopped)
index 1c65847f4f2989ca6817e5e594952164a7ca9665..827f3940f7c28f2326a532d390da6fd22c444a0b 100644 (file)
@@ -53,7 +53,6 @@ float server_is_dedicated;
 .float count;
 //.float cnt2;
 
-.float play_time;
 .int respawn_flags;
 .float respawn_time;
 .float respawn_time_max;
index 2f732956c568a778dcb0200c74bf36504ad0ab7f..e2532a9d5b62e536368711fac015ac7f50589f95 100644 (file)
@@ -1596,25 +1596,6 @@ void NextLevel()
        localcmd("\nsv_hook_gameend\n");
 }
 
-/*
-============
-CheckRules_Player
-
-Exit deathmatch games upon conditions
-============
-*/
-void CheckRules_Player(entity this)
-{
-       if (game_stopped) // someone else quit the game already
-               return;
-
-       if(!IS_DEAD(this))
-               this.play_time += frametime;
-
-       // fixme: don't check players; instead check spawnfunc_dom_team and spawnfunc_ctf_team entities
-       //   (div0: and that in CheckRules_World please)
-}
-
 
 float InitiateSuddenDeath()
 {
index e408974bbe04d3b295b2329c912815b89cb4c1f2..4d5401abdf888e5afaf05ec22a286410ee47ce3d 100644 (file)
@@ -15,7 +15,6 @@ void SetLimits(int fraglimit_override, int leadlimit_override, float timelimit_o
 
 float WinningCondition_Scores(float limit, float leadlimit);
 void SetWinners(.float field, float value);
-void CheckRules_Player(entity this);
 void IntermissionThink(entity this);
 void GotoNextMap(float reinit);
 void ReadyRestart();