Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game.py
diff options
context:
space:
mode:
authorMuriel de Souza Godoi <muriel@laptop.org>2007-11-08 20:02:27 (GMT)
committer Muriel de Souza Godoi <muriel@laptop.org>2007-11-08 20:02:27 (GMT)
commitdcfbb1d1cadcabb9607289d8180370af622f1daf (patch)
treed1f5f4efe8e2e01508ff9a48b96a49ab5bb5c9ed /game.py
parenta7dd032920847ac785d1d88d5c96def2b96db3d3 (diff)
Rainbow compliance, Use new tubes interface #4739, fix in collaboration mode #4752
Diffstat (limited to 'game.py')
-rwxr-xr-xgame.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/game.py b/game.py
index 61c5118..551956e 100755
--- a/game.py
+++ b/game.py
@@ -90,11 +90,12 @@ class MemorizeGame(GObject):
_logger.error(' Error starting csound performance.')
self.sound = 0
- def load_game(self, game_name, size):
+ def load_game(self, game_name, size, mode):
self.set_load_mode('Loading game')
if self.model.read(game_name) == 0:
self.model.def_grid(size)
self.model.data['running'] = 'False'
+ self.model.data['mode'] = mode
logging.debug(' Read setup file %s: %s '%(game_name, self.model.grid))
self.emit('load_game', self.model.data, self.model.grid)
else: