Don't show illuminated time of day on fogged/shrouded tiles

This should fix Debian bug #344216
This commit is contained in:
Benoît Timbert 2005-12-21 11:08:59 +00:00
parent 4f260c0e52
commit 5a1f7df8cf
2 changed files with 6 additions and 1 deletions

View file

@ -198,6 +198,7 @@ SVN trunk (1.1-svn):
* pressing 'n' wont take you out of path selection mode (#4833, patch #490)
* fix broken tooltip in the status bar for plague(argument)
* added the "/me" command to MP lobby
* don't show illuminated time of day on fogged/shrouded tiles
* utils
* added weblist.pl and webtgz.pl web interface programs
* wml.pm uses substr instead of split: reduces memory usage for large strings

View file

@ -321,7 +321,11 @@ Units cannot be killed by poison alone. The poison will not reduce it below 1 HP
case UNIT_PROFILE:
return report("",u->second.type().image_profile(),"");
case TIME_OF_DAY: {
const time_of_day& tod = timeofday_at(status,units,mouseover);
time_of_day tod = timeofday_at(status,units,mouseover);
// don't show illuminated time on fogged/shrouded tiles
if (current_team.fogged(mouseover.x,mouseover.y) || current_team.shrouded(mouseover.x,mouseover.y)) {
tod = status.get_time_of_day(false,mouseover);
}
std::stringstream tooltip;
tooltip << tod.name << "\n"