From 84c79d9fc5ec5c587e4abfb9760f3915efcbf0d4 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Wed, 18 Mar 2015 12:50:03 +0100 Subject: [PATCH 1/2] Read Italian descriptions from the .DAT files as well --- src/localisation/language.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/localisation/language.c b/src/localisation/language.c index 02bfd5c9a3..38c2790a28 100644 --- a/src/localisation/language.c +++ b/src/localisation/language.c @@ -238,11 +238,11 @@ void language_close() } const int OpenRCT2LangIdToObjectLangId[] = { - 0, 0, 1, 3, 6, 2, 0, 0, 4, 7 + 0, 0, 1, 3, 6, 2, 0, 0, 4, 7, 5 }; /* rct2: 0x0098DA16 */ -uint16 ObjectTypeStringTableCount[] = { 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3 }; +uint16 ObjectTypeStringTableCount[] = { 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3 }; /* rct2: 0x006A9E24*/ rct_string_id object_get_localised_text(uint8_t** pStringTable/*ebp*/, int type/*ecx*/, int index/*ebx*/, int tableindex/*edx*/) From 83765a3c22c405b6c3c48ffc098f8c48ba127561 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Wed, 18 Mar 2015 13:20:19 +0100 Subject: [PATCH 2/2] Revert incorrect adjustment of row 245 --- src/localisation/language.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/localisation/language.c b/src/localisation/language.c index 38c2790a28..dbc51414d4 100644 --- a/src/localisation/language.c +++ b/src/localisation/language.c @@ -242,7 +242,7 @@ const int OpenRCT2LangIdToObjectLangId[] = { }; /* rct2: 0x0098DA16 */ -uint16 ObjectTypeStringTableCount[] = { 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3 }; +uint16 ObjectTypeStringTableCount[] = { 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3 }; /* rct2: 0x006A9E24*/ rct_string_id object_get_localised_text(uint8_t** pStringTable/*ebp*/, int type/*ecx*/, int index/*ebx*/, int tableindex/*edx*/)