From 6740a6bb7318c8bbe3c96339d3585fff2a3506cd Mon Sep 17 00:00:00 2001
From: RedEnchilada <red@lyrawearspants.com>
Date: Sun, 6 Dec 2015 20:00:44 -0600
Subject: [PATCH] Thokker-relevant tiny tweaks

---
 src/d_main.c   | 4 ++++
 src/d_netcmd.c | 9 +++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/d_main.c b/src/d_main.c
index 3918d8118c..5227f59f87 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -844,6 +844,10 @@ static void IdentifyVersion(void)
 	// Add our crappy patches to fix our bugs
 	// D_AddFile(va(pandf,srb2waddir,"patch.dta"));
 
+	// Add the thokker WAD
+	if (M_CheckParm("-nothokker") == 0)
+        D_AddFile(va(pandf,srb2waddir,"thokker.thk"));
+
 #if !defined (HAVE_SDL) || defined (HAVE_MIXER)
 	{
 #if defined (DC) && 0
diff --git a/src/d_netcmd.c b/src/d_netcmd.c
index 02bc464e61..7d3c53bb4e 100644
--- a/src/d_netcmd.c
+++ b/src/d_netcmd.c
@@ -3375,8 +3375,13 @@ void D_GameTypeChanged(INT32 lastgametype)
 				if (!cv_timelimit.changed && !cv_pointlimit.changed) // user hasn't changed limits
 				{
 					// default settings for match: timelimit 10 mins, no pointlimit
-					CV_SetValue(&cv_pointlimit, 0);
-					CV_SetValue(&cv_timelimit, 10);
+					if (M_CheckParm("-nothokker") != 0) {
+						CV_SetValue(&cv_pointlimit, 0);
+						CV_SetValue(&cv_timelimit, 10);
+					} else {
+						CV_SetValue(&cv_pointlimit, 3);
+						CV_SetValue(&cv_timelimit, 0);
+					}
 				}
 				if (!cv_itemrespawntime.changed)
 					CV_Set(&cv_itemrespawntime, cv_itemrespawntime.defaultvalue); // respawn normally
-- 
GitLab