mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-07 20:01:21 +00:00
Fix Sryder's bool error
I don't seem to get this error for some reason, even after upgrading to w64 & GCC 7.2.0, but hopefully this fixes it
This commit is contained in:
parent
b7e8f89df7
commit
aa651cb379
2 changed files with 8 additions and 8 deletions
|
|
@ -5209,24 +5209,24 @@ static void Command_ShowTime_f(void)
|
|||
// SRB2Kart: On change messages
|
||||
static void KartFrantic_OnChange(void)
|
||||
{
|
||||
if (cv_kartfrantic.value != franticitems && gamestate == GS_LEVEL)
|
||||
if ((boolean)cv_kartfrantic.value != franticitems && gamestate == GS_LEVEL)
|
||||
CONS_Printf(M_GetText("Frantic items will be turned %s next round.\n"), cv_kartfrantic.value ? M_GetText("on") : M_GetText("off"));
|
||||
}
|
||||
|
||||
static void KartSpeed_OnChange(void)
|
||||
{
|
||||
if (cv_kartspeed.value != gamespeed && G_RaceGametype() && gamestate == GS_LEVEL)
|
||||
if ((UINT8)cv_kartspeed.value != gamespeed && G_RaceGametype() && gamestate == GS_LEVEL)
|
||||
CONS_Printf(M_GetText("Game speed will be changed to \"%s\" next round.\n"), cv_kartspeed.string);
|
||||
}
|
||||
|
||||
static void KartMirror_OnChange(void)
|
||||
{
|
||||
if (cv_kartmirror.value != mirrormode && G_RaceGametype() && gamestate == GS_LEVEL)
|
||||
if ((boolean)cv_kartmirror.value != mirrormode && G_RaceGametype() && gamestate == GS_LEVEL)
|
||||
CONS_Printf(M_GetText("Mirror Mode will be turned %s next round.\n"), cv_kartmirror.value ? M_GetText("on") : M_GetText("off"));
|
||||
}
|
||||
|
||||
static void KartComeback_OnChange(void)
|
||||
{
|
||||
if (cv_kartcomeback.value != comeback && G_BattleGametype() && gamestate == GS_LEVEL)
|
||||
if ((boolean)cv_kartcomeback.value != comeback && G_BattleGametype() && gamestate == GS_LEVEL)
|
||||
CONS_Printf(M_GetText("Karma Comeback will be turned %s next round.\n"), cv_kartcomeback.value ? M_GetText("on") : M_GetText("off"));
|
||||
}
|
||||
|
|
@ -2992,15 +2992,15 @@ boolean P_SetupLevel(boolean skipprecip)
|
|||
if (G_BattleGametype())
|
||||
gamespeed = 0;
|
||||
else
|
||||
gamespeed = cv_kartspeed.value;
|
||||
gamespeed = (UINT8)cv_kartspeed.value;
|
||||
|
||||
if (G_BattleGametype())
|
||||
mirrormode = false;
|
||||
else
|
||||
mirrormode = cv_kartmirror.value;
|
||||
mirrormode = (boolean)cv_kartmirror.value;
|
||||
|
||||
franticitems = cv_kartfrantic.value;
|
||||
comeback = cv_kartcomeback.value;
|
||||
franticitems = (boolean)cv_kartfrantic.value;
|
||||
comeback = (boolean)cv_kartcomeback.value;
|
||||
}
|
||||
|
||||
lightningcooldown = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue