mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 18:12:22 +00:00
remove variable that was always false
This commit is contained in:
parent
4593921b67
commit
78e6bdaa29
@ -38,7 +38,6 @@ team_builder::team_builder(const config& side_cfg, team& to_build, const config&
|
||||
, leader_configs_()
|
||||
, level_(level)
|
||||
, board_(board)
|
||||
, player_exists_(false)
|
||||
, seen_ids_()
|
||||
, side_(num)
|
||||
, side_cfg_(side_cfg)
|
||||
@ -95,15 +94,10 @@ void team_builder::init()
|
||||
|
||||
log_step("init");
|
||||
|
||||
// track whether a [player] tag with persistence information exists (in addition to the [side] tag)
|
||||
player_exists_ = false;
|
||||
|
||||
if(board_.map().empty()) {
|
||||
throw game::load_game_failed("Map not found");
|
||||
}
|
||||
|
||||
DBG_NG_TC << "snapshot: " << utils::bool_string(player_exists_);
|
||||
|
||||
unit_configs_.clear();
|
||||
seen_ids_.clear();
|
||||
}
|
||||
|
@ -54,8 +54,6 @@ private:
|
||||
// only used for objectives
|
||||
const config& level_;
|
||||
game_board& board_;
|
||||
// only used for debug message
|
||||
bool player_exists_;
|
||||
std::set<std::string> seen_ids_;
|
||||
int side_;
|
||||
const config& side_cfg_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user