Show gold in status table unless team is enemy and fog is enabled.

This commit is contained in:
Dominic Bolin 2006-02-14 20:13:59 +00:00
parent 1eb8c320c0
commit 287b4e9cee
2 changed files with 2 additions and 2 deletions

View file

@ -261,7 +261,7 @@ namespace events{
str << ' ' << COLUMN_SEPARATOR << "\033[3" << lexical_cast<char, size_t>(n+1) << "m-" << COLUMN_SEPARATOR;
}
if(enemy) {
if(enemy && viewing_team.uses_fog()) {
str << ' ' << COLUMN_SEPARATOR;
} else {
str << data.gold << COLUMN_SEPARATOR;

View file

@ -1888,7 +1888,7 @@ void turn_info::status_table()
str << ' ' << COLUMN_SEPARATOR << "\033[3" << lexical_cast<char, size_t>(n+1) << "m-" << COLUMN_SEPARATOR;
}
if(enemy) {
if(enemy && viewing_team.uses_fog()) {
str << ' ' << COLUMN_SEPARATOR;
} else {
str << data.gold << COLUMN_SEPARATOR;