fix interpolation for alphabetic
This commit is contained in:
parent
67c122ce03
commit
85c0e66852
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue