diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 3bd9e6df7fe9eec356c5ca7c5fbb07c711196617..ba3581d6528926bf701167bfa3cb5822d05708c1 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -869,6 +869,7 @@ void D_RegisterClientCommands(void) CV_RegisterVar(&cv_chatbacktint); CV_RegisterVar(&cv_songcredits); CV_RegisterVar(&cv_showviewpoint); + CV_RegisterVar(&cv_showfreeplay); CV_RegisterVar(&cv_playendingmusic); CV_RegisterVar(&cv_playenginesounds); CV_RegisterVar(&cv_growmusic); diff --git a/src/g_game.c b/src/g_game.c index e68bb8fcbcf435be7ed45ee137fa66cc56db1fca..b37241e2b297d7ac4821b965d51614052c4db052 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -453,6 +453,9 @@ consvar_t cv_songcredits = {"songcredits", "On", CV_SAVE, CV_OnOff, NULL, 0, NUL // Show "VIEWPOINT:" annonation on HUD consvar_t cv_showviewpoint = {"showviewpoint", "Yes", CV_SAVE, CV_YesNo, }; +// Show "FREE PLAY" when you're alone. :( +consvar_t cv_showfreeplay = { "showfreeplay", "On", CV_SAVE, CV_OnOff, }; + // Play race finished and battle over music static CV_PossibleValue_t playendingmusic_cons_t[] = {{0, "Both"}, {1, "Race"}, {2,"Battle"}, {3, "Never"}, {0, NULL}}; consvar_t cv_playendingmusic = {"playendingmusic", "Both", CV_SAVE, playendingmusic_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; diff --git a/src/g_game.h b/src/g_game.h index f13de4ca732f0e34c93993bd7e1eb115e5ec42ad..daacd9af016f0997fab31c0040ee87d7eca4949c 100644 --- a/src/g_game.h +++ b/src/g_game.h @@ -107,6 +107,7 @@ extern INT16 rw_maximums[NUM_WEAPONS]; extern consvar_t cv_chatwidth, cv_chatnotifications, cv_chatheight, cv_chattime, cv_consolechat, cv_chatbacktint, cv_chatspamprotection/*, cv_compactscoreboard*/; extern consvar_t cv_songcredits; extern consvar_t cv_showviewpoint; +extern consvar_t cv_showfreeplay; extern consvar_t cv_playendingmusic; extern consvar_t cv_playenginesounds; extern consvar_t cv_growmusic, cv_supermusic; diff --git a/src/k_kart.c b/src/k_kart.c index eff31eb827602e97d40e36a6e69163cb33056d13..d389749170ebd3e9d6274afe439009c08e25cd7a 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -8650,6 +8650,9 @@ void K_drawKartFreePlay(UINT32 flashtime) { // no splitscreen support because it's not FREE PLAY if you have more than one player in-game + if (! cv_showfreeplay.value) + return; + if ((flashtime % TICRATE) < TICRATE/2) return;