From 365e02bb324eba5d8c34ce41c50c12e6c12cbd01 Mon Sep 17 00:00:00 2001
From: GoldenTails <milestailsprower101n2@gmail.com>
Date: Thu, 5 Nov 2020 17:38:32 -0600
Subject: [PATCH] Make `skincolor_*` CTF color variables writable.

---
 src/lua_script.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/lua_script.c b/src/lua_script.c
index 2805a969b8..29ee094d9e 100644
--- a/src/lua_script.c
+++ b/src/lua_script.c
@@ -376,6 +376,14 @@ int LUA_CheckGlobals(lua_State *L, const char *word)
 		redscore = (UINT32)luaL_checkinteger(L, 2);
 	else if (fastcmp(word, "bluescore"))
 		bluescore = (UINT32)luaL_checkinteger(L, 2);
+	else if (fastcmp(word, "skincolor_redteam"))
+		skincolor_redteam = (UINT16)luaL_checkinteger(L, 2);
+	else if (fastcmp(word, "skincolor_blueteam"))
+		skincolor_blueteam = (UINT16)luaL_checkinteger(L, 2);
+	else if (fastcmp(word, "skincolor_redring"))
+		skincolor_redring = (UINT16)luaL_checkinteger(L, 2);
+	else if (fastcmp(word, "skincolor_bluering"))
+		skincolor_bluering = (UINT16)luaL_checkinteger(L, 2);
 	else if (fastcmp(word, "emeralds"))
 		emeralds = (UINT16)luaL_checkinteger(L, 2);
 	else if (fastcmp(word, "token"))
-- 
GitLab