Fix ICustomTerrain to also work for resources

This commit is contained in:
Paul Chote
2010-04-17 20:06:14 +12:00
committed by Chris Forbes
parent 70e26bb047
commit 4a6c32bd9c
10 changed files with 84 additions and 61 deletions

View File

@@ -70,9 +70,6 @@ namespace OpenRA
public readonly TileSet TileSet;
public GlobalDefaultsInfo Defaults { get {return WorldActor.Info.Traits.Get<GlobalDefaultsInfo>();}}
// for tricky things like bridges.
public readonly ICustomTerrain[,] customTerrain;
public readonly WorldRenderer WorldRenderer;
internal readonly Minimap Minimap;
@@ -80,9 +77,6 @@ namespace OpenRA
{
Timer.Time( "----World.ctor" );
Map = map;
customTerrain = new ICustomTerrain[Map.MapSize.X, Map.MapSize.Y];
Timer.Time( "new Map: {0}" );
Rules.LoadRules(manifest,Map);
Timer.Time( "load rules: {0}" );