]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
GameCommand_moveplayer: fix wrong team name in a message
authorterencehill <piuntn@gmail.com>
Wed, 24 Mar 2021 21:36:42 +0000 (22:36 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 24 Mar 2021 21:36:42 +0000 (22:36 +0100)
qcsrc/server/command/sv_cmd.qc

index eebb334886e3bf9ce91e999555c666487b2db696..81ef50aeda4a3120c08b71c2c80e77f09ead2c63 100644 (file)
@@ -1039,7 +1039,7 @@ void GameCommand_moveplayer(int request, int argc)
                                                                if (team_num == client.team)  // already on the destination team
                                                                {
                                                                        // keep the forcing undone
-                                                                       LOG_INFO("Player ", ftos(GetFilteredNumber(t)), " (", pl_name, ") is already on the ", Team_ColoredFullName(client.team), (targets ? "^7, skipping to next player.\n" : "^7."));
+                                                                       LOG_INFO("Player ", ftos(GetFilteredNumber(t)), " (", pl_name, ") is already on the ", Team_ColoredFullName(team_num), (targets ? "^7, skipping to next player.\n" : "^7."));
                                                                        continue;
                                                                }
                                                                else if (team_num == 0)  // auto team
@@ -1074,7 +1074,7 @@ void GameCommand_moveplayer(int request, int argc)
                                                                if (MoveToTeam(client, team_id, 6))
                                                                {
                                                                        successful = strcat(successful, (successful ? ", " : ""), pl_name);
-                                                                       LOG_INFO("Player ", ftos(GetFilteredNumber(t)), " (", pl_name, ") has been moved to the ", Team_ColoredFullName(team_id), "^7.");
+                                                                       LOG_INFO("Player ", ftos(GetFilteredNumber(t)), " (", pl_name, ") has been moved to the ", Team_ColoredFullName(team_num), "^7.");
                                                                }
                                                                else
                                                                {