From aeb807bea1897663a9aebf0cb9f9844ae365c109 Mon Sep 17 00:00:00 2001
From: Mitchell Richters <mjr4077au@gmail.com>
Date: Thu, 27 Aug 2020 22:42:50 +1000
Subject: [PATCH] - gamecvars.cpp: Create CVAR `cl_showmagamt`.

---
 source/core/gamecvars.cpp | 1 +
 source/core/gamecvars.h   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/source/core/gamecvars.cpp b/source/core/gamecvars.cpp
index 9975ebb75..862f0bece 100644
--- a/source/core/gamecvars.cpp
+++ b/source/core/gamecvars.cpp
@@ -81,6 +81,7 @@ CVARD(Bool, cl_syncinput, false, CVAR_ARCHIVE, "enable/disable synchronized inpu
 CVARD(Bool, cl_swaltnukeinit, false, CVAR_ARCHIVE, "enable/disable SW alternative nuke initialisation") // only implemented in SW
 CVARD(Bool, cl_dukefixrpgrecoil, false, CVAR_ARCHIVE, "soften recoil of Duke 3D's RPG")
 CVARD(Bool, cl_smoothsway, false, CVAR_ARCHIVE, "move SW weapon left and right smoothly while bobbing")
+CVARD(Bool, cl_showmagamt, false, CVAR_ARCHIVE, "show the amount of rounds left in the magazine of your weapon on the modern HUD")
 CUSTOM_CVARD(Int, cl_crosshairscale, 50, CVAR_ARCHIVE, "changes the size of the crosshair")
 {
 	if (self < 1) self = 1;
diff --git a/source/core/gamecvars.h b/source/core/gamecvars.h
index 173a77c6b..ce9e06523 100644
--- a/source/core/gamecvars.h
+++ b/source/core/gamecvars.h
@@ -25,6 +25,7 @@ EXTERN_CVAR(Bool, cl_syncinput)
 EXTERN_CVAR(Bool, cl_swaltnukeinit)
 EXTERN_CVAR(Bool, cl_dukefixrpgrecoil)
 EXTERN_CVAR(Bool, cl_smoothsway)
+EXTERN_CVAR(Bool, cl_showmagamt)
 
 EXTERN_CVAR(Bool, demorec_seeds_cvar)
 EXTERN_CVAR(Bool, demoplay_diffs)