Restore the "reverse ToD image" option (bug #9526),
...which was mainly removed for bad "code refactoring" reasons. We can remove it again later, if there is better design reasons. Anyway, now it also simply uses the "~FL(horiz)" image-path mod, so it can use the image cache (instead of being flipped each time, like it did the previous implementation)
This commit is contained in:
parent
2efa9c6a59
commit
1eeda701ae
1 changed files with 3 additions and 1 deletions
|
@ -287,6 +287,8 @@ Units cannot be killed by poison alone. The poison will not reduce it below 1 HP
|
|||
return report("",u->second.profile(),"");
|
||||
case TIME_OF_DAY: {
|
||||
time_of_day tod = timeofday_at(status,units,mouseover,map);
|
||||
const std::string tod_image = tod.image + (preferences::flip_time() ? "~FL(horiz)" : "");
|
||||
|
||||
// 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);
|
||||
|
@ -300,7 +302,7 @@ Units cannot be killed by poison alone. The poison will not reduce it below 1 HP
|
|||
<< _("Chaotic units: ")
|
||||
<< (tod.lawful_bonus < 0 ? "+" : "") << (tod.lawful_bonus*-1) << "%";
|
||||
|
||||
return report("",tod.image,tooltip.str());
|
||||
return report("",tod_image,tooltip.str());
|
||||
}
|
||||
case TURN:
|
||||
str << status.turn();
|
||||
|
|
Loading…
Add table
Reference in a new issue