From bde0d7ac3a5a4e4d342af831016d38edf7ce2360 Mon Sep 17 00:00:00 2001 From: mazmazz Date: Thu, 13 Dec 2018 14:59:12 -0500 Subject: [PATCH] R_Char2Frame special case for backslash: accept plus as substitute --- src/r_things.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/r_things.h b/src/r_things.h index e4a5f4260..6614e0aa4 100644 --- a/src/r_things.h +++ b/src/r_things.h @@ -219,6 +219,7 @@ FUNCMATH FUNCINLINE static ATTRINLINE char R_Frame2Char(UINT8 frame) FUNCMATH FUNCINLINE static ATTRINLINE UINT8 R_Char2Frame(char cn) { #if 1 // 2.1 compat + if (cn == '+') return '\\' - 'A'; // PK3 can't use backslash, so use + instead return cn - 'A'; #else if (cn >= 'A' && cn <= 'Z') return cn - 'A';