Update Building.java

This commit is contained in:
vshcherb 2021-01-15 18:49:17 +01:00 committed by GitHub
parent c98ae20599
commit 1d16ff216a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,8 +114,11 @@ public class Building extends MapObject {
int numB = Algorithms.extractFirstIntegerNumber(fname);
int numT = numB;
String sname = getName2();
if (getInterpolationType() == BuildingInterpolation.ALPHABETIC && num == numB) {
if (getInterpolationType() == BuildingInterpolation.ALPHABETIC) {
if (num != numB) {
// currently not supported
return -1;
}
int hint = (int) hno.charAt(hno.length() - 1);
int fch = (int) fname.charAt(fname.length() - 1);
int sch = sname.charAt(sname.length() - 1);