From 7874376f7c8ad63b7f916146325ea5dceee2480c Mon Sep 17 00:00:00 2001
From: drjaska <drjaska83@gmail.com>
Date: Sat, 6 Mar 2021 03:37:39 +0200
Subject: [PATCH] fixed a compile error, all the hooks work now, need to find a
 way to disable self damage and hp&armor rot. need to find the file to write
 default values for g_mayhem_ regeneration and weaponarena. need to add a new
 icon for mayhem. need to look into mapinfo regeneration.

---
 qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc b/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc
index 7b443af5fa..5fbe7a0965 100644
--- a/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc
+++ b/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc
@@ -1,6 +1,7 @@
 #include "sv_mayhem.qh"
 
-bool autocvar_g_mayhem_regenerate;
+float autocvar_g_mayhem_regenerate;
+string autocvar_g_mayhem_weaponarena;
 
 MUTATOR_HOOKFUNCTION(mayhem, Scores_CountFragsRemaining)
 {
@@ -49,4 +50,6 @@ MUTATOR_HOOKFUNCTION(mayhem, FilterItem)
 
 	if (autocvar_g_pickup_items <= 0)
 		return true;
+	else 
+		return false;
 }
\ No newline at end of file
-- 
2.39.5