diff --git a/src/command.c b/src/command.c index 319baa57..09c52b7a 100644 --- a/src/command.c +++ b/src/command.c @@ -1533,6 +1533,15 @@ static void CV_SetCVar(consvar_t *var, const char *value, boolean stealth) return; } + if (var == &cv_kartspeed && !M_SecretUnlocked(SECRET_HARDSPEED)) + { + if (!stricmp(value, "Hard") || atoi(value) == 2) + { + CONS_Printf(M_GetText("You haven't unlocked this yet!\n")); + return; + } + } + // Only add to netcmd buffer if in a netgame, otherwise, just change it. if (netgame || multiplayer) { diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 6dede9e0..4d383f60 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -5728,13 +5728,6 @@ static void KartFrantic_OnChange(void) static void KartSpeed_OnChange(void) { - if (!M_SecretUnlocked(SECRET_HARDSPEED) && cv_kartspeed.value == 2) - { - CONS_Printf(M_GetText("You haven't earned this yet.\n")); - CV_StealthSetValue(&cv_kartspeed, 1); - return; - } - if (G_RaceGametype()) { if ((UINT8)cv_kartspeed.value != gamespeed && gamestate == GS_LEVEL && leveltime > starttime)