remove language check in takeExit
This commit is contained in:
parent
b128fad4ba
commit
9e9b3e3bbb
1 changed files with 2 additions and 2 deletions
|
@ -697,7 +697,7 @@ public class VoiceRouter {
|
|||
ExitInfo exitInfo = next.getExitInfo();
|
||||
String lang = player.getLanguage();
|
||||
if (tParam != null) {
|
||||
if (exitInfo != null && (lang.startsWith("en") || lang.startsWith("ru"))) {
|
||||
if (exitInfo != null) {
|
||||
p.takeExit(tParam, dist, getSpeakableExitName(next, exitInfo, true));
|
||||
} else {
|
||||
p.turn(tParam, dist, getSpeakableStreetName(currentSegment, next, true));
|
||||
|
@ -771,7 +771,7 @@ public class VoiceRouter {
|
|||
boolean isplay = true;
|
||||
String lang = player.getLanguage();
|
||||
if (tParam != null) {
|
||||
if (exitInfo != null && (lang.startsWith("en") || lang.startsWith("ru"))) {
|
||||
if (exitInfo != null) {
|
||||
p.takeExit(tParam, getSpeakableExitName(next, exitInfo, !suppressDest));
|
||||
} else {
|
||||
p.turn(tParam, getSpeakableStreetName(currentSegment, next, !suppressDest));
|
||||
|
|
Loading…
Reference in a new issue