Update parsers to use more real C data.
This commit is contained in:
@ -121,6 +121,10 @@ def parseMap(data):
|
||||
print(f"Error: Object in object layer does not contain 'x' or 'y' key.")
|
||||
sys.exit(1)
|
||||
|
||||
if 'id' not in ob:
|
||||
print(f"Error: Object in object layer does not contain 'id' key.")
|
||||
sys.exit(1)
|
||||
|
||||
ob['x'] -= mapData['inputMapLowestX'] * TILE_WIDTH_HEIGHT
|
||||
ob['y'] -= mapData['inputMapLowestY'] * TILE_WIDTH_HEIGHT
|
||||
|
||||
|
Reference in New Issue
Block a user