Permalink
Browse files

Fixed sound disabling CLI argument

  • Loading branch information...
1 parent 31126a3 commit d6b474ea26b5094fe063de047dc677de8c21a04e @PVince81 committed Jun 9, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 nodereviver.py
View
@@ -24,9 +24,9 @@ def main():
config = Config()
parser = optparse.OptionParser(description='Node Reviver')
- parser.add_option('--enable-sound', action="store_true",
- dest='enableSound',
- default=True, help='enable sound')
+ parser.add_option('--disable-sound', action="store_true",
+ dest='disableSound',
+ default=False, help='disable sound')
parser.add_option('--game', action="store_true", default=True,
dest='game',
help='runs the game (default)')
@@ -48,7 +48,7 @@ def main():
(args, rest) = parser.parse_args()
config.startLevel = args.startLevel
- config.sound = args.enableSound
+ config.sound = not args.disableSound
config.dataPath = args.dataPath
config.fullScreen = args.fullScreen
config.controls = args.controls

0 comments on commit d6b474e

Please sign in to comment.