Ticket #8591: sword2credits.patch

File sword2credits.patch, 840 bytes (added by jvprat, 17 years ago)

SWORD2: Fix for the spanish credits

  • engines/sword2/screen.cpp

     
    928928                        continue;
    929929                }
    930930
    931                 // The German credits contains character code 9. We don't want
    932                 // the credits to show the 'dud' symbol, so we replace them
    933                 // with spaces.
     931                // Replace invalid character codes to avoid the credits to show
     932                // the 'dud' symbol.
    934933
    935934                for (char *ptr = line; *ptr; ptr++) {
    936                         if (*ptr < 32)
     935                        // The German credits contains character code 9. We
     936                        // replace them with spaces.
     937                        if (*ptr == 9)
    937938                                *ptr = 32;
     939
     940                        // The Spanish credits contains character code -86. We
     941                        // replace them with dots.
     942                        if (*ptr == -86)
     943                                *ptr = '.';
    938944                }
    939945
    940946                char *center_mark = strchr(line, '^');