mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
Underground rock tiles will be always blocked -> no spawning monsters in there.
This commit is contained in:
parent
98d32acf1b
commit
f5874540b3
@ -1109,7 +1109,7 @@ void Mapa::readTerrain( const unsigned char * bufor, int &i)
|
||||
terrain[z][c][0].malle = static_cast<TerrainTile::Eroad>(bufor[i++]);
|
||||
terrain[z][c][0].roadDir = bufor[i++];
|
||||
terrain[z][c][0].siodmyTajemniczyBajt = bufor[i++];
|
||||
terrain[z][c][0].blocked = 0;
|
||||
terrain[z][c][0].blocked = (terrain[z][c][0].tertype == TerrainTile::rock ? 1 : 0); //underground tiles are always blocked
|
||||
terrain[z][c][0].visitable = 0;
|
||||
}
|
||||
}
|
||||
@ -1126,7 +1126,7 @@ void Mapa::readTerrain( const unsigned char * bufor, int &i)
|
||||
terrain[z][c][1].malle = static_cast<TerrainTile::Eroad>(bufor[i++]);
|
||||
terrain[z][c][1].roadDir = bufor[i++];
|
||||
terrain[z][c][1].siodmyTajemniczyBajt = bufor[i++];
|
||||
terrain[z][c][1].blocked = 0;
|
||||
terrain[z][c][1].blocked = (terrain[z][c][1].tertype == TerrainTile::rock ? 1 : 0); //underground tiles are always blocked
|
||||
terrain[z][c][1].visitable = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user