fix interpolation for alphabetic

This commit is contained in:
Kseniia 2021-01-15 21:13:18 +02:00
parent 1d16ff216a
commit d29c271471

View file

@ -128,7 +128,8 @@ public class Building extends MapObject {
float res = ((float) hint - fch) / (((float) sch - fch)); float res = ((float) hint - fch) / (((float) sch - fch));
if (res > 1 || res < -1) { if (res > 1 || res < -1) {
return -1; return -1;
} }
return res;
} }
if (num >= numB) { if (num >= numB) {
if (fname.contains("-") && sname == null) { if (fname.contains("-") && sname == null) {