[all] Fix for issue 177. Ported to all other languages

This commit is contained in:
bsongis
2013-11-02 07:44:59 +00:00
parent 3a1c4b1379
commit b41762bcf4
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ I18N_PLAY_FUNCTION(cz, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
}
}
#if defined(CPUARM)
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
if ((att & PREC1) && (unit == UNIT_FEET || (unit == UNIT_METERS && number >= 100))) {
number /= 10;
att -= PREC1;
}
+1 -1
View File
@@ -115,7 +115,7 @@ I18N_PLAY_FUNCTION(de, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
}
}
#if defined(CPUARM)
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
if ((att & PREC1) && (unit == UNIT_FEET || (unit == UNIT_METERS && number >= 100))) {
number /= 10;
att -= PREC1;
}
+1 -1
View File
@@ -139,7 +139,7 @@ I18N_PLAY_FUNCTION(es, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
}
}
#if defined(CPUARM)
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
if ((att & PREC1) && (unit == UNIT_FEET || (unit == UNIT_METERS && number >= 100))) {
number /= 10;
att -= PREC1;
}
+1 -1
View File
@@ -121,7 +121,7 @@ I18N_PLAY_FUNCTION(fr, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
}
}
#if defined(CPUARM)
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
if ((att & PREC1) && (unit == UNIT_FEET || (unit == UNIT_METERS && number >= 100))) {
number /= 10;
att -= PREC1;
}
+1 -1
View File
@@ -111,7 +111,7 @@ I18N_PLAY_FUNCTION(it, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
}
}
#if defined(CPUARM)
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
if ((att & PREC1) && (unit == UNIT_FEET || (unit == UNIT_METERS && number >= 100))) {
number /= 10;
att -= PREC1;
}
+1 -1
View File
@@ -124,7 +124,7 @@ I18N_PLAY_FUNCTION(pt, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
}
}
#if defined(CPUARM)
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
if ((att & PREC1) && (unit == UNIT_FEET || (unit == UNIT_METERS && number >= 100))) {
number /= 10;
att -= PREC1;
}
+1 -1
View File
@@ -89,7 +89,7 @@ I18N_PLAY_FUNCTION(se, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
}
}
#if defined(CPUARM)
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
if ((att & PREC1) && (unit == UNIT_FEET || (unit == UNIT_METERS && number >= 100))) {
number /= 10;
att -= PREC1;
}
+1 -1
View File
@@ -140,7 +140,7 @@ I18N_PLAY_FUNCTION(sk, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
}
}
#if defined(CPUARM)
if (unit == UNIT_METERS && number >= 100 && (att & PREC1)) {
if ((att & PREC1) && (unit == UNIT_FEET || (unit == UNIT_METERS && number >= 100))) {
number /= 10;
att -= PREC1;
}