Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/editmap.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-04-22 05:53:05 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-04-22 05:53:05 (GMT)
commite11a9e2376758f6b58adcf14c84c068ba616c491 (patch)
treec9abf300afbe7b77a269d08c70b8057118ddcd14 /editmap.py
parent3f85ef148c482039d3ce681ae1cca7f0c6492ab6 (diff)
Avoid drawing all the objects in a map when the character moves
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'editmap.py')
-rw-r--r--editmap.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/editmap.py b/editmap.py
index 060fd9f..11cfcc0 100644
--- a/editmap.py
+++ b/editmap.py
@@ -26,8 +26,7 @@ class EditMapWin(gtk.HBox):
self.model.data['map_data'] = self.game_map.data
left_vbox = gtk.VBox()
- self.nav_view = MapNavView(self.game_map)
- self.nav_view.view_mode = MapNavView.MODE_EDIT
+ self.nav_view = MapNavView(self.game_map, mode=MapNavView.MODE_EDIT)
self.top_view = TopMapView(self.game_map, 150, 150)
self.top_view.show_position(self.nav_view.x, self.nav_view.y,
self.nav_view.direction)