Changed fogged key to match zookeeper's initial request

This commit is contained in:
Pauli Nieminen 2008-09-08 08:01:18 +00:00
parent a598e406af
commit 93e681dc3e
3 changed files with 5 additions and 5 deletions

View file

@ -1070,7 +1070,7 @@ Ww, Ww, Ww, Ww
[label]
x,y=2,11
text="Fogged oasis"
fogged=no
fogged=yes
[/label]
[/event]

View file

@ -341,7 +341,7 @@ void game_display::draw_hex(const gamemap::location& loc)
for( ; overlays.first != overlays.second; ++overlays.first) {
if ((overlays.first->second.team_name == "" ||
overlays.first->second.team_name.find(teams_[playing_team()].team_name()) != std::string::npos)
&& !(is_fogged && overlays.first->second.fogged))
&& !(is_fogged && !overlays.first->second.fogged))
{
drawing_buffer_add(LAYER_TERRAIN_BG, drawing_order, tblit(xpos, ypos,
image::get_image(overlays.first->second.image,image_type)));
@ -973,7 +973,7 @@ void game_display::add_overlay(const gamemap::location& loc, const std::string&
const int halo_handle = halo::add(get_location_x(loc) + hex_size() / 2,
get_location_y(loc) + hex_size() / 2, halo, loc);
const overlay item(img, halo, halo_handle, team_name, utils::string_bool(fogged,true));
const overlay item(img, halo, halo_handle, team_name, utils::string_bool(fogged,false));
overlays_.insert(overlay_map::value_type(loc,item));
}

View file

@ -360,7 +360,7 @@ void terrain_label::read(const config& cfg, const variable_set *variables)
text_ = cfg["text"];
team_name_ = cfg["team_name"];
fogged_ = utils::string_bool(cfg["fogged"],true);
fogged_ = utils::string_bool(cfg["fogged"],false);
if (variables)
{
@ -507,7 +507,7 @@ void terrain_label::draw()
bool terrain_label::visible() const
{
if (!fogged_)
if (fogged_)
{
if (parent_->disp().fogged(loc_))
{