mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Disable logs for better performance.
This commit is contained in:
@ -482,15 +482,14 @@ void CDrawTerrainOperation::updateTerrainTypes()
|
|||||||
{
|
{
|
||||||
const auto & centerPos = *(positions.begin());
|
const auto & centerPos = *(positions.begin());
|
||||||
auto centerTile = map->getTile(centerPos);
|
auto centerTile = map->getTile(centerPos);
|
||||||
logGlobal->debugStream() << boost::format("Set terrain tile at pos '%s' to type '%s'") % centerPos % centerTile.terType;
|
//logGlobal->debugStream() << boost::format("Set terrain tile at pos '%s' to type '%s'") % centerPos % centerTile.terType;
|
||||||
auto tiles = getInvalidTiles(centerPos);
|
auto tiles = getInvalidTiles(centerPos);
|
||||||
auto updateTerrainType = [&](const int3 & pos)
|
auto updateTerrainType = [&](const int3 & pos)
|
||||||
{
|
{
|
||||||
map->getTile(pos).terType = centerTile.terType;
|
map->getTile(pos).terType = centerTile.terType;
|
||||||
positions.insert(pos);
|
positions.insert(pos);
|
||||||
invalidateTerrainViews(pos);
|
invalidateTerrainViews(pos);
|
||||||
logGlobal->debugStream() << boost::format("Set additional terrain tile at pos '%s' to type '%s'") % pos
|
//logGlobal->debugStream() << boost::format("Set additional terrain tile at pos '%s' to type '%s'") % pos % centerTile.terType;
|
||||||
% centerTile.terType;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Fill foreign invalid tiles
|
// Fill foreign invalid tiles
|
||||||
|
Reference in New Issue
Block a user