From d556e5032bcc97a62be620eac836888b5ec8ee6c Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Thu, 6 Nov 2014 22:11:54 +0000 Subject: [PATCH] fix custom strings not popping arguments --- src/localisation/localisation.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/localisation/localisation.c b/src/localisation/localisation.c index c2462bbd1a..bce6aa273b 100644 --- a/src/localisation/localisation.c +++ b/src/localisation/localisation.c @@ -555,8 +555,11 @@ void format_string_part(char **dest, rct_string_id format, char **args) } else if (format < 0x9000) { // Custom string format -= 0x8000; - // args += (format & 0xC00) >> 9; + + // Bits 10, 11 represent number of bytes to pop off arguments + *args += (format & 0xC00) >> 9; format &= ~0xC00; + strcpy(*dest, RCT2_ADDRESS(0x135A8F4 + (format * 32), char)); *dest = strchr(*dest, 0) + 1; } else if (format < 0xE000) {