Merge pull request #8242 from PsiOmegaDelta/StarDimmer

Makes starlight strength configurable.
This commit is contained in:
Zuhayr
2015-02-26 16:28:09 +10:30
3 changed files with 5 additions and 4 deletions

View File

@@ -606,7 +606,8 @@
config.event_delay_upper[EVENT_LEVEL_MAJOR] = MinutesToTicks(values[3])
if("starlight")
config.starlight = 1
value = text2num(value)
config.starlight = value >= 0 ? value : 0
else
log_misc("Unknown setting in configuration: '[name]'")