Load cnc TEMPERAT maps (other theatres need tileset.til fixes)

This commit is contained in:
Paul Chote
2010-03-02 21:47:16 +13:00
parent 3fd7af5532
commit e841bbd3d2
8 changed files with 2812 additions and 3946 deletions

View File

@@ -105,8 +105,15 @@ namespace OpenRA.FileFormats
{
if (r.tile == 0xff || r.tile == 0xffff)
r.image = 0;
return walk[r.tile].TerrainType[r.image];
try {
return walk[r.tile].TerrainType[r.image];
}
catch (KeyNotFoundException)
{
return 0; // Default zero (walkable)
}
}
}
}