Commits

Jason Scheirer  committed 4a9efe5

Works-in-progress: parks, girder skeletons in buildings

  • Participants
  • Parent commits 689d690

Comments (0)

Files changed (1)

File buildings.py

                     zoffset -= 1
                 elif zoffset:
                     zoffset += 1
-                for eyo in range(3):
+                for eyo in range(4):
                     level.setBlockAt(centerx + xoffset,
                                      yoffset + 1 - eyo,
                                      centerz + zoffset,
-                                     Air.ID)
+                                     Glass.ID)
                     for xpos, zpos in itertools.product((lightbbox.minx,
                                                          lightbbox.maxx),
                                                         (lightbbox.minz,
             px, pz = bbox.minx if self.orientation == 0 else bbox.maxx - 1, centerz
         doordata = [1, 1, 1, 1]
         for yoffset in (1, 2):
-            #print (px, bbox.miny + yoffset, pz, Lighting.ID)
             level.setBlockAt(px, bbox.miny + yoffset, pz, Door.ID)
             level.setBlockDataAt(px,
                                  bbox.miny + yoffset,
                                  pz,
-                                 (8 if yoffset == 1 else 0) &
+                                 (8 if yoffset == 1 else 0) |
                                  doordata[self.orientation])
 
 class Buildings(object):