}
}
previousLocation = centerLocation;
if (!"Wooden Building".equals(centerLocationTerrain.getName()) &&
!"Stone Building".equals(centerLocationTerrain.getName()) &&
<BUG>!centerLocationTerrain.getName().contains("Roofless")) {

if (isMultihexBuilding()) {
int level = 0;</BUG>
while (previousLocation.getUpLocation() != null) {

}
}
previousLocation = centerLocation;
if (!"Wooden Building".equals(centerLocationTerrain.getName()) &&
!"Stone Building".equals(centerLocationTerrain.getName()) &&
!centerLocationTerrain.isRoofless()) {
if (isMultihexBuilding()) {
Terrain roofterrain;
roofterrain = map.getTerrain("Rooftop");
int level = 0;
while (previousLocation.getUpLocation() != null) {
