fix interpolation for alphabetic

This commit is contained in:
Kseniia 2021-01-15 21:27:42 +02:00
parent 67c122ce03
commit 85c0e66852

View file

@ -126,7 +126,7 @@ public class Building extends MapObject {
return -1; return -1;
} }
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 < 0) {
return -1; return -1;
} }
return res; return res;