show total amount of visible villages (patch #698)

This commit is contained in:
Mark de Wever 2007-03-20 19:35:49 +00:00
parent 31c354d487
commit 7982b9ca36
3 changed files with 15 additions and 2 deletions

View File

@ -59,6 +59,7 @@ Version 1.3.1+svn:
* new sounds for user interface events
* added the option to show warnings about deprecated WML usage
* added the "ignore all" option to continue observing during massive OOS
* show total amount of visible villages (patch #698)
* misceleanous changes and bug fixes
* an friendly healer hill now stop poisoned unit to lose HP
* a unit that dies while attacking will now correctly play it's own death

View File

@ -35,7 +35,8 @@ Version 1.3.1+svn:
opening a menu (among others) will now emit small sounds.
* If deprecated WML is being encountered and error message will be shown,
this way creators of WML code can be easily informed about the problems.
* Show total amount of visible villages.
* Language and translations
* Updated translations: Bulgarian, Czech, Danish, Dutch, French, German,
Hungarian, Italian, Norwegian, Portuguese (Brazil).

View File

@ -349,7 +349,18 @@ Units cannot be killed by poison alone. The poison will not reduce it below 1 HP
break;
case VILLAGES: {
const team_data data = calculate_team_data(current_team,current_side,units);
str << (current_side != playing_side ? font::GRAY_TEXT : font::NULL_MARKUP) << data.villages;
str << (current_side != playing_side ? font::GRAY_TEXT : font::NULL_MARKUP) << data.villages << "/";
if (current_team.uses_shroud()) {
int unshrouded_villages = 0;
std::vector<gamemap::location>::const_iterator i = map.villages().begin();
for (; i != map.villages().end(); i++) {
if (!current_team.shrouded(i->x,i->y))
unshrouded_villages++;
}
str << unshrouded_villages;
} else {
str << map.villages().size();
}
break;
}
case NUM_UNITS: {