Changeset 279:9f68e22c1e58 for nagslang


Ignore:
Timestamp:
Sep 5, 2013, 11:47:22 AM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Message:

Don't crash on empty walls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r277 r279  
    102102        walls = self._level.get_walls()
    103103        for wall in walls:
     104            if len(wall) < 2:
     105                # Don't try to add a useless wall
     106                continue
    104107            corners = wall
    105108            corner = corners[-1]
Note: See TracChangeset for help on using the changeset viewer.