Skip to content

Commit

Permalink
Fix a crash when starting a song from the command line.
Browse files Browse the repository at this point in the history
It still doesn't do the right thing, but at least it doesn't crash now.
SongChoosingScene seems to be getting confused as to what is expected
of it.
  • Loading branch information
stump committed Mar 14, 2010
1 parent 2b8ebc1 commit 8473d20
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/FoFiX.py
Expand Up @@ -199,12 +199,10 @@ def main():
if part is not None:
engine.cmdPart = int(part)
#evilynux - Multiplayer and mode selection support
Config.set("game", "players", nbrplayers)
if nbrplayers == 1:
Config.set("game", "game_mode", mode)
engine.cmdMode = nbrplayers, mode, 0
else:
Config.set("game", "game_mode", 0)
Config.set("game", "multiplayer_mode", mode)
engine.cmdMode = nbrplayers, 0, mode

encoding = Config.get("game", "encoding")
if encoding is not None:
Expand Down

0 comments on commit 8473d20

Please sign in to comment.