Removed broken test.

This commit is contained in:
Guillaume Melquiond 2010-06-12 18:59:12 +00:00
parent f535b9e64a
commit 8450921898

View file

@ -803,16 +803,12 @@ protected:
log_step("previous recruits");
// If the game state specifies units that
// can be recruited for the player, add them.
// the can_recruit attribute is checked for backwards compatibility of saves
if(player_cfg_ != NULL &&
((*player_cfg_).has_attribute("previous_recruits") || (*player_cfg_).has_attribute("can recruit")) ) {
if (player_cfg_ && (*player_cfg_).has_attribute("previous_recruits"))
{
std::vector<std::string> player_recruits;
if (!(*player_cfg_)["previous_recruits"].empty()) {
player_recruits = utils::split((*player_cfg_)["previous_recruits"]);
}
else {
player_recruits = utils::split((*player_cfg_)["can_recruit"]);
}
foreach (std::string rec, player_recruits) {
DBG_NG_TC << "adding previous recruit: "<< rec << std::endl;
t_->add_recruit(rec);