rename AllowOreAt => AllowResourceAt

This commit is contained in:
Bob
2010-11-06 11:46:19 +13:00
parent 85a26ecdf7
commit 8fcbb670d8
2 changed files with 3 additions and 4 deletions

View File

@@ -11,7 +11,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using OpenRA.Mods.RA.Buildings;
using OpenRA.Mods.RA.Render;
using OpenRA.Traits;
@@ -52,7 +51,7 @@ namespace OpenRA.Mods.RA
// Todo: Valid terrain should be specified in the resource
if (cell != null && self.World.Map.IsInMap(cell.Value) &&
(resLayer.GetResource(cell.Value) == resourceType
|| (resLayer.GetResource(cell.Value) == null && self.World.IsCellBuildable(cell.Value, false))))
|| (resLayer.GetResource(cell.Value) == null && resLayer.AllowResourceAt(cell.Value))))
resLayer.AddResource(resourceType, cell.Value.X, cell.Value.Y, 1);
ticks = info.Interval;