make editor use pickany metadata

This commit is contained in:
Chris Forbes
2010-06-20 18:45:47 +12:00
parent aff357db0b
commit 5dcc7782d9
4 changed files with 12 additions and 5 deletions

View File

@@ -98,11 +98,11 @@ namespace OpenRA.FileFormats
return missingTile;
}
public TerrainType GetTerrainType( TileReference<ushort, byte> r )
public TerrainType GetTerrainType(TileReference<ushort, byte> r)
{
var tt = walk[ r.type ].TerrainType;
var tt = walk[r.type].TerrainType;
TerrainType ret;
if( !tt.TryGetValue( r.image, out ret ) )
if (!tt.TryGetValue(r.image, out ret))
return 0;// Default zero (walkable)
return ret;
}