1
0
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:
DjWarmonger 2011-07-22 07:07:27 +00:00
parent 98d32acf1b
commit f5874540b3

View File

@ -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;
}
}