Fixed illuminated [area_time]s.
This commit is contained in:
parent
0a0556a78f
commit
badf0f5ef3
1 changed files with 2 additions and 3 deletions
|
@ -50,7 +50,7 @@ player_info* game_state::get_player(const std::string& id) {
|
|||
time_of_day::time_of_day(const config& cfg)
|
||||
: lawful_bonus(atoi(cfg["lawful_bonus"].c_str())),
|
||||
image(cfg["image"]), name(cfg["name"]), id(cfg["id"]),
|
||||
image_mask(cfg["mask"]),lighter_id(cfg["lighter"]),darker_id(cfg["darker"]),
|
||||
image_mask(cfg["mask"]),lighter_id(cfg["lighter"]),darker_id(cfg["darker"]),lighter(NULL),darker(NULL),
|
||||
red(atoi(cfg["red"].c_str())),
|
||||
green(atoi(cfg["green"].c_str())),
|
||||
blue(atoi(cfg["blue"].c_str()))
|
||||
|
@ -164,9 +164,8 @@ gamestatus::gamestatus(const config& time_cfg, int num_turns) :
|
|||
area.xsrc = (**t)["x"];
|
||||
area.ysrc = (**t)["y"];
|
||||
std::copy(locs.begin(),locs.end(),std::inserter(area.hexes,area.hexes.end()));
|
||||
parse_times(**t,area.times,area.illuminated_times);
|
||||
|
||||
areas_.push_back(area);
|
||||
parse_times(**t,areas_.back().times,areas_.back().illuminated_times);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue