Ver Fonte

Merge pull request #6252 from Opuszek/mapeditor_fix_rivers

Fixes a bug that changes rives directions when terrain type is change…
Ivan Savenko há 2 semanas atrás
pai
commit
2768db0a4a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/mapping/CMapOperation.cpp

+ 1 - 1
lib/mapping/CMapOperation.cpp

@@ -311,7 +311,7 @@ void CDrawTerrainOperation::updateTerrainViews()
 		if(!pattern.diffImages)
 		{
 			tile.terView = gen->nextInt(mapping.first, mapping.second);
-			tile.extTileFlags = valRslt.flip;
+			tile.extTileFlags = (tile.extTileFlags & 0b11111100) | valRslt.flip;
 		}
 		else
 		{