From 8dbeefef9a7e5948660db20de59e269cd1f073df Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Tue, 20 May 2014 04:01:48 +0200 Subject: [PATCH] rename values of [side]defeat_condition= most likely defeat_condition= will re renamed too defeat= too. --- src/team.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/team.cpp b/src/team.cpp index 9af9d43ce28..2da5fa2bd7c 100644 --- a/src/team.cpp +++ b/src/team.cpp @@ -72,9 +72,9 @@ const std::vector& teams_manager::get_teams() team::DEFEAT_CONDITION team::parse_defeat_condition(const std::string& cond, team::DEFEAT_CONDITION def) { - if(cond == "no_leader") + if(cond == "no_leader_left") return team::NO_LEADER; - else if (cond == "no_unit") + else if (cond == "no_units_left") return team::NO_UNITS; else if (cond == "never") return team::NEVER; @@ -89,9 +89,9 @@ std::string team::defeat_condition_to_string(DEFEAT_CONDITION cond) switch(cond) { case team::NO_LEADER: - return "no_leader"; + return "no_leader_left"; case team::NO_UNITS: - return "no_unit"; + return "no_units_left"; case team::NEVER: return "never"; case team::ALWAYS: