Commits

Nikhil Marathe committed 208845d

Fix globals issue

Comments (0)

Files changed (1)

src/fileadelphia/city.py

      (0, 0)   ---> x
     """
     def __init__(self, x, z):
-        global textures
         self.x, self.z = x, z
         self.leaf = True
         self.buildings = []
 
 class City(State):
     def __init__(self, directory):
-        global city_texture_inited
+        global city_texture_inited, textures
         State.__init__(self)
         pygame.display.set_caption("Fileadelphia - %s"%directory)
         self.directory = directory