changeset 502:b74b3a37cf1d

Process upper floors first
author Neil Muller <drnlmuller@gmail.com>
date Thu, 26 Nov 2009 22:23:56 +0000
parents 1da14b3d8773
children 4c281ce4fc5f
files gamelib/buildings.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/buildings.py	Thu Nov 26 00:31:54 2009 +0000
+++ b/gamelib/buildings.py	Thu Nov 26 22:23:56 2009 +0000
@@ -306,7 +306,7 @@
         return self._floors
 
     def places(self):
-        for floor in self._floors:
+        for floor in reversed(self._floors):
             for row in floor.rows():
                 for place in row:
                     yield place