1
0
forked from 0ad/0ad

remove warn messages. Now really fixes #2102

This was SVN commit r13853.
This commit is contained in:
sanderd17 2013-09-15 09:33:45 +00:00
parent b16b52492d
commit 6644f224cd

View File

@ -240,7 +240,6 @@ BuildRestrictions.prototype.CheckPlacement = function()
{
var dist = +this.template.Distance.MinDistance
var nearEnts = cmpRangeManager.ExecuteQuery(this.entity, 0, dist, [cmpPlayer.GetPlayerID()], IID_BuildRestrictions).filter(filter);
warn("mindist "+uneval(nearEnts));
if (nearEnts.length)
{
result.message = name+" too close to a "+cat+", must be at least "+ +this.template.Distance.MinDistance+" units away";
@ -251,7 +250,6 @@ BuildRestrictions.prototype.CheckPlacement = function()
{
var dist = +this.template.Distance.MaxDistance;
var nearEnts = cmpRangeManager.ExecuteQuery(this.entity, 0, dist, [cmpPlayer.GetPlayerID()], IID_BuildRestrictions).filter(filter);
warn("maxdist "+nearEnts);
if (!nearEnts.length)
{
result.message = name+" too far away from a "+cat+", must be within "+ +this.template.Distance.MaxDistance+" units";