From: Mario Date: Thu, 6 Jan 2022 16:03:49 +0000 (+1000) Subject: Fix a typographical error in a newly introduced team function name X-Git-Tag: xonotic-v0.8.5~242 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a82242f36b44bb29fe216ff2552eaf78daf0356f;p=xonotic%2Fxonotic-data.pk3dir.git Fix a typographical error in a newly introduced team function name --- diff --git a/qcsrc/common/gamemodes/gamemode/domination/sv_domination.qc b/qcsrc/common/gamemodes/gamemode/domination/sv_domination.qc index 80bbf6532..7d3a02bfd 100644 --- a/qcsrc/common/gamemodes/gamemode/domination/sv_domination.qc +++ b/qcsrc/common/gamemodes/gamemode/domination/sv_domination.qc @@ -340,7 +340,7 @@ bool Domination_CheckWinner() } Domination_count_controlpoints(); - int winner_team = Team_GetWinnerTeam_WIthOwnedItems(total_control_points); + int winner_team = Team_GetWinnerTeam_WithOwnedItems(total_control_points); if (winner_team == -1) return 0; diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc index c071be0e0..7f2def318 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc @@ -1188,7 +1188,7 @@ bool Onslaught_CheckWinner() else { wpforenemy_announced = false; ons_stalemate = false; } Onslaught_count_generators(); - int winner_team = Team_GetWinnerTeam_WIthOwnedItems(1); + int winner_team = Team_GetWinnerTeam_WithOwnedItems(1); if (!winner_team) return 0; diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index 0bc7e7cbb..61f250f12 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -120,7 +120,7 @@ int Team_GetNumberOfAliveTeams() return result; } -int Team_GetWinnerTeam_WIthOwnedItems(int min_control_points) +int Team_GetWinnerTeam_WithOwnedItems(int min_control_points) { int winner = 0; for (int i = 0; i < NUM_TEAMS; ++i) diff --git a/qcsrc/server/teamplay.qh b/qcsrc/server/teamplay.qh index a94b247a8..d96b7df4b 100644 --- a/qcsrc/server/teamplay.qh +++ b/qcsrc/server/teamplay.qh @@ -62,7 +62,7 @@ int Team_GetNumberOfAliveTeams(); /// \brief Returns the winner team. /// \param[in] min_owned_items Minimum number of items the winner team must have. /// \return Winner team or 0 if 2 or more teams own items or -1 if no team own any items. -int Team_GetWinnerTeam_WIthOwnedItems(int min_owned_items); +int Team_GetWinnerTeam_WithOwnedItems(int min_owned_items); /// \brief Returns the number of items owned by a team. /// \param[in] team_ent Team entity.