Skip to content

Commit

Permalink
fix silly text thing
Browse files Browse the repository at this point in the history
  • Loading branch information
RenaKunisaki committed Mar 30, 2021
1 parent 33edb96 commit 97fbabf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amethyst/src/texthook.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 97fbabf

Please sign in to comment.