• src/doors/clans-src/src/empire.c fight.c game.c ibbs.c items.c mail.c

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Sunday, November 02, 2025 01:10:34
    https://gitlab.synchro.net/main/sbbs/-/commit/ba51b62f04fc25d2cd87fa41
    Modified Files:
    src/doors/clans-src/src/empire.c fight.c game.c ibbs.c items.c mail.c menus.c pawn.c scores.c spells.c user.c village.c voting.c
    Log Message:
    "Fix" language file handling

    The strings file has sprintf() format specifiers for the 16-bit MS-DOS
    version. Since every parameter is implicitly converted to an int, this
    isn't an issue for chars, shorts, int16_t, or uint16_t (the old int
    and unsigned). However, some of the format specifiers want longs,
    and those values are no longer a long type (they're int32_t). This
    caused various numbers to be displayed incorrectly even though the
    game used them correctly.

    So, I went through and added casts to the type specified in the
    strings file to every snprintf() that uses numbers (or chars).
    This meant looking up the macro in mstrings.h, then looking at the
    referenced line in string.txt... a lot.

    Anyway, looks good now.
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)