Mute annoying warnings. This closes ticket:2740.

master
Per Inge Mathisen 2011-05-21 22:07:51 +02:00
parent 0892ed7b4c
commit b1c962dcc4
1 changed files with 2 additions and 2 deletions

View File

@ -1417,13 +1417,13 @@ STRUCTURE* buildStructureDir(STRUCTURE_STATS *pStructureType, UDWORD x, UDWORD y
//check not trying to build too near the edge
if (map_coord(x) < TOO_NEAR_EDGE || map_coord(x) > (mapWidth - TOO_NEAR_EDGE))
{
debug(LOG_ERROR, "attempting to build too closely to map-edge, "
debug(LOG_WARNING, "attempting to build too closely to map-edge, "
"x coord (%u) too near edge (req. distance is %u)", x, TOO_NEAR_EDGE);
return NULL;
}
if (map_coord(y) < TOO_NEAR_EDGE || map_coord(y) > (mapHeight - TOO_NEAR_EDGE))
{
debug(LOG_ERROR, "attempting to build too closely to map-edge, "
debug(LOG_WARNING, "attempting to build too closely to map-edge, "
"y coord (%u) too near edge (req. distance is %u)", y, TOO_NEAR_EDGE);
return NULL;
}