From 97fbabfaea468a55788f6178b4b31bdd97859a8f Mon Sep 17 00:00:00 2001 From: Rena Kunisaki Date: Tue, 30 Mar 2021 17:43:07 -0400 Subject: [PATCH] fix silly text thing --- amethyst/src/texthook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amethyst/src/texthook.c b/amethyst/src/texthook.c index b742cbf5..adabf598 100644 --- a/amethyst/src/texthook.c +++ b/amethyst/src/texthook.c @@ -12,14 +12,14 @@ int textHook(char *str) { while(*str) { int cSize; - char c = shiftJisGetNextChar(str, &cSize); + int c = shiftJisGetNextChar(str, &cSize); if(!c) break; if (c == 'l' || c == 'r') *str = 'w'; else if(c == 'L' || c == 'R') *str = 'W'; else { //of course this can't be simple for(int i=0; i<46; i++) { if(controlCharLength[i].chr == c) { - cSize = controlCharLength[i].len * 2; + cSize += controlCharLength[i].len * 2; break; } }