Don't show illuminated time of day on fogged/shrouded tiles
This should fix Debian bug #344216
This commit is contained in:
parent
4f260c0e52
commit
5a1f7df8cf
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue