diff options
author | Marijn van der Werf <marijn.vanderwerf@gmail.com> | 2017-06-24 18:06:32 +0200 |
---|---|---|
committer | Marijn van der Werf <marijn.vanderwerf@gmail.com> | 2017-06-24 18:24:08 +0200 |
commit | ec3fe21936b250b329e58941a47e11afb9b240e0 (patch) | |
tree | 31e152c5ff057e44bccaaccd80adb8b0f8e678dd /src/pokemon_size_record.c | |
parent | 88bb5b267ee6a0cd93f39bb5eccc866a1b1c870c (diff) |
first src changes
Diffstat (limited to 'src/pokemon_size_record.c')
-rw-r--r-- | src/pokemon_size_record.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pokemon_size_record.c b/src/pokemon_size_record.c index f293190e8..f2222bd3b 100644 --- a/src/pokemon_size_record.c +++ b/src/pokemon_size_record.c @@ -86,10 +86,17 @@ static u32 GetMonSize(u16 species, u16 b) static void FormatMonSizeRecord(u8 *string, u32 size) { +#if ENGLISH u8 decimalPoint[] = _("."); +#elif GERMAN + u8 decimalPoint[] = _(","); +#endif +#ifdef UNITS_IMPERIAL //Convert size from centimeters to inches size = (double)(size * 10) / (CM_PER_INCH * 10); +#endif + string = ConvertIntToDecimalStringN(string, size / 10, 0, 8); string = StringAppend(string, decimalPoint); ConvertIntToDecimalStringN(string, size % 10, 0, 1); |