mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-07 20:01:21 +00:00
Fix compiling errors
- Replace itoa with sprintf (itoa is a nonstandard function). - Guard one instance of Discord Rich Presence.
This commit is contained in:
parent
a64263c96d
commit
74288a4de1
2 changed files with 4 additions and 2 deletions
|
|
@ -1009,8 +1009,10 @@ menu_t OPTIONS_DataScreenshotDef = {
|
|||
menuitem_t OPTIONS_DataReplay[] =
|
||||
{
|
||||
|
||||
#ifdef HAVE_DISCORDRPC
|
||||
{IT_STRING | IT_CVAR, "Rich Presence", "Allow Discord to display game info on your status.",
|
||||
NULL, &cv_discordrp, 0, 0},
|
||||
#endif
|
||||
|
||||
{IT_STRING | IT_CVAR, "Synch. Check Interval", "How often to check for synchronization while playing back a replay.",
|
||||
NULL, &cv_netdemosyncquality, 0, 0},
|
||||
|
|
|
|||
|
|
@ -2243,7 +2243,7 @@ static void M_MPConfirmCharacterSelection(void)
|
|||
// colour
|
||||
// (convert the number that's saved to a string we can use)
|
||||
col = setup_player[i].color;
|
||||
itoa(col, colstr, 10);
|
||||
sprintf(colstr, "%d", col);
|
||||
strcpy(cmd, commandnames[i][1]);
|
||||
strcat(cmd, colstr);
|
||||
|
||||
|
|
@ -4033,4 +4033,4 @@ void M_Manual(INT32 choice)
|
|||
|
||||
MISC_ManualDef.prevMenu = (choice == INT32_MAX ? NULL : currentMenu);
|
||||
M_SetupNextMenu(&MISC_ManualDef, true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue