mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
fix
This commit is contained in:
parent
ae2c72ca52
commit
6520d2a577
@ -268,7 +268,7 @@ void CDrawRoadsOperation::updateTile(TerrainTile & tile, const RoadPattern & pat
|
||||
{
|
||||
//TODO: this method should be virtual for river support
|
||||
|
||||
std::pair<int, int> mapping = pattern.roadMapping;
|
||||
const std::pair<int, int> & mapping = pattern.roadMapping;
|
||||
|
||||
tile.roadDir = gen->nextInt(mapping.first, mapping.second);
|
||||
tile.extTileFlags = (tile.extTileFlags & 0xCF) | (flip << 4);
|
||||
@ -314,7 +314,7 @@ CDrawRoadsOperation::ValidationResult CDrawRoadsOperation::validateTile(const Ro
|
||||
}
|
||||
else
|
||||
{
|
||||
hasSomething = tileHasSomething(pos);
|
||||
hasSomething = tileHasSomething(currentPos);
|
||||
}
|
||||
|
||||
if(ruleIsSomething(flipped.data[i]))
|
||||
|
Loading…
Reference in New Issue
Block a user