Enable local ToD light option by default.

This will also enable it for 1.9 users who never touched that
settings, because they only have an empty string in their preferences
file.  Only users having toggled it twice (from 'no' to 'yes' then
'no' again) will keep the 'no' state, and I assume they really wanted
that.
This commit is contained in:
Ali El Gariani 2011-12-26 22:54:52 +00:00
parent 9d256d9dee
commit 04f02d9140
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@
name=_"Local time of day area lighting"
description=_"Custom lighting for local time of day areas (uses more memory)"
type=boolean
default=no
default=yes
[/advanced_preference]
[advanced_preference]

View File

@ -1926,7 +1926,7 @@ void display::draw(bool update,bool force) {
return;
}
local_tod_light_ = has_time_area() && preferences::get("local_tod_light", false);
local_tod_light_ = has_time_area() && preferences::get("local_tod_light", true);
draw_init();
pre_draw();