Skip to content

Commit

Permalink
Moves show_fog to graphics + one suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Apr 12, 2013
1 parent 3eedaaf commit 103781b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,16 @@ def initialize_config():
choices=globals.DRAW_DISTANCE_CHOICES)
globals.DRAW_DISTANCE = globals.DRAW_DISTANCE_CHOICES[globals.DRAW_DISTANCE_CHOICE]

globals.SHOW_FOG = get_or_update_config(
graphics, 'show_fog', globals.SHOW_FOG, conv=bool)

globals.MOTION_BLUR = get_or_update_config(
graphics, 'motion_blur', globals.MOTION_BLUR, conv=bool)

world = 'World'

# TODO: This setting must be removed when terrain generation will improve.
get_or_update_config(world, 'size', 64, conv=int)
globals.SHOW_FOG = get_or_update_config(
world, 'show_fog', globals.SHOW_FOG, conv=bool)

# Adds missing keys to configuration file and converts to pyglet keys.
for control, default_key_name in globals.KEY_BINDINGS.items():
Expand Down

0 comments on commit 103781b

Please sign in to comment.