Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools.py b/tools.py
index 963e2a8..e886f70 100644
--- a/tools.py
+++ b/tools.py
@@ -37,10 +37,11 @@ class Tool(object):
if hasattr(event,"code"):
if event.code == olpcgames.FILE_WRITE_REQUEST:
#saving to journal
- self.game.world.pickle_save(event.filename)
+ self.game.world.add.remove_mouseJoint()
+ self.game.world.json_save(event.filename)
if event.code == olpcgames.FILE_READ_REQUEST:
#loading from journal
- self.game.world.pickle_load(event.filename)
+ self.game.world.json_load(event.filename)
elif event.type == MOUSEBUTTONDOWN and event.button == 1:
self.game.canvas.grab_focus()
handled = False