comparison gamelib/buildings.py @ 136:9acf8e3d9596

Fix orientation of places in buildings.
author Simon Cross <hodgestar@gmail.com>
date Wed, 02 Sep 2009 22:14:55 +0000
parents b7dc405a28be
children a9b800b4175e
comparison
equal deleted inserted replaced
135:149822fbebeb 136:9acf8e3d9596
63 self._sell_price = self.SELL_PRICE 63 self._sell_price = self.SELL_PRICE
64 64
65 self._floors = [] 65 self._floors = []
66 for f in range(self.FLOORS): 66 for f in range(self.FLOORS):
67 places = [] 67 places = []
68 for i in range(self.size[0]): 68 for j in range(self.size[1]):
69 row = [] 69 row = []
70 for j in range(self.size[1]): 70 for i in range(self.size[0]):
71 row.append(Place(self, (i, j))) 71 row.append(Place(self, (i, j)))
72 places.append(row) 72 places.append(row)
73 floor = Floor("Floor %s" % (f+1,), places) 73 floor = Floor("Floor %s" % (f+1,), places)
74 self._floors.append(floor) 74 self._floors.append(floor)
75 75