From 8fd8f2c31683199179f438ec5cdda1653a5c8098 Mon Sep 17 00:00:00 2001
From: Monster Iestyn <iestynjealous@ntlworld.com>
Date: Fri, 29 Apr 2016 18:01:05 +0100
Subject: [PATCH] Disable "splats" command unless WALLSPLATS is enabled

apparently it was never used for what exists of floor splats' code, huh
---
 src/d_netcmd.c | 2 ++
 src/d_netcmd.h | 2 ++
 src/p_mobj.c   | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/src/d_netcmd.c b/src/d_netcmd.c
index c62ff8fe1a..b4ba92182a 100644
--- a/src/d_netcmd.c
+++ b/src/d_netcmd.c
@@ -597,7 +597,9 @@ void D_RegisterClientCommands(void)
 	CV_RegisterVar(&cv_gif_optimize);
 	CV_RegisterVar(&cv_gif_downscale);
 
+#ifdef WALLSPLATS
 	CV_RegisterVar(&cv_splats);
+#endif
 
 	// register these so it is saved to config
 	if ((username = I_GetUserName()))
diff --git a/src/d_netcmd.h b/src/d_netcmd.h
index 31a7cf8186..42ac4c054b 100644
--- a/src/d_netcmd.h
+++ b/src/d_netcmd.h
@@ -81,7 +81,9 @@ extern consvar_t cv_useranalog, cv_useranalog2;
 extern consvar_t cv_analog, cv_analog2;
 
 extern consvar_t cv_netstat;
+#ifdef WALLSPLATS
 extern consvar_t cv_splats;
+#endif
 
 extern consvar_t cv_countdowntime;
 extern consvar_t cv_runscripts;
diff --git a/src/p_mobj.c b/src/p_mobj.c
index 9bf95972c5..bcbb72c42b 100644
--- a/src/p_mobj.c
+++ b/src/p_mobj.c
@@ -38,7 +38,9 @@
 // protos.
 static CV_PossibleValue_t viewheight_cons_t[] = {{16, "MIN"}, {56, "MAX"}, {0, NULL}};
 consvar_t cv_viewheight = {"viewheight", VIEWHEIGHTS, 0, viewheight_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL};
+#ifdef WALLSPLATS
 consvar_t cv_splats = {"splats", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
+#endif
 
 actioncache_t actioncachehead;
 
-- 
GitLab