]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fixed incorrect merge.
authorLyberta <lyberta@lyberta.net>
Thu, 17 May 2018 09:33:24 +0000 (12:33 +0300)
committerLyberta <lyberta@lyberta.net>
Thu, 17 May 2018 09:33:24 +0000 (12:33 +0300)
qcsrc/server/player.qc

index 43878e0fb5a1fc03bd171b27da8ceefb0ae83427..8b82919889319d873f8baa9703871af511a43aa2 100644 (file)
@@ -664,21 +664,6 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage,
        }
 }
 
-bool MoveToTeam(entity client, int team_colour, int type)
-{
-       int lockteams_backup = lockteams;  // backup any team lock
-       lockteams = 0;  // disable locked teams
-       TeamchangeFrags(client);  // move the players frags
-       if (!SetPlayerTeamSimple(client, team_colour))
-       {
-               return false;
-       }
-       Damage(client, client, client, 100000, DEATH_AUTOTEAMCHANGE.m_id, DMG_NOWEP, client.origin, '0 0 0');  // kill the player
-       lockteams = lockteams_backup;  // restore the team lock
-       LogTeamchange(client.playerid, client.team, type);
-       return true;
-}
-
 /**
  * message "": do not say, just test flood control
  * return value: