remove unused member variable

This commit is contained in:
gfgtdf 2015-02-10 22:29:28 +01:00
parent 0a2f0b0e6d
commit 92bf33174b
3 changed files with 0 additions and 7 deletions

View file

@ -76,7 +76,6 @@ team::team_info::team_info() :
name(),
gold(0),
start_gold(0),
gold_add(false),
income(0),
income_per_village(0),
support_per_village(1),
@ -216,7 +215,6 @@ void team::team_info::write(config& cfg) const
{
cfg["gold"] = gold;
cfg["start_gold"] = start_gold;
cfg["gold_add"] = gold_add;
cfg["income"] = income;
cfg["name"] = name;
cfg["team_name"] = team_name;

View file

@ -106,7 +106,6 @@ private:
std::string name;
int gold;
int start_gold;
bool gold_add;
int income;
int income_per_village;
int support_per_village;
@ -181,7 +180,6 @@ public:
int side() const { return info_.side; }
int gold() const { return gold_; }
int start_gold() const { return info_.start_gold; }
bool gold_add() const { return info_.gold_add; }
int base_income() const { return info_.income + game_config::base_income; }
int village_gold() const { return info_.income_per_village; }
int recall_cost() const { return info_.recall_cost; }
@ -200,7 +198,6 @@ public:
void set_gold(int amount) { gold_ = amount; }
void set_start_gold(const int amount) { info_.start_gold = amount; }
void spend_gold(const int amount) { gold_ -= amount; }
void set_gold_add(bool b) {info_.gold_add = b; }
void set_base_income(int amount) { info_.income = amount - game_config::base_income; }
int countdown_time() const { return countdown_time_; }
void set_countdown_time (const int amount) const

View file

@ -153,7 +153,6 @@ protected:
gold_info_ngold_ = side_cfg_["gold"];
DBG_NG_TC << "set gold to '" << gold_info_ngold_ << "'\n";
//DBG_NG_TC << "set gold add flag to '" << gold_info_add_ << "'\n";
}
@ -161,7 +160,6 @@ protected:
{
log_step("new team");
t_->build(side_cfg_, map_, gold_info_ngold_);
//t_->set_gold_add(gold_info_add_);
}