Mute annoying warnings. This closes ticket:2740.
parent
0892ed7b4c
commit
b1c962dcc4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue