From 29b6de6ac2c5ced6eb9b5234190d4f980d49ba17 Mon Sep 17 00:00:00 2001
From: John FrostFox <john.frostfox@gmail.com>
Date: Sun, 17 Oct 2021 00:35:22 +0300
Subject: [PATCH] Dumb CTF flag fix

---
 src/p_savenetrb.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/p_savenetrb.c b/src/p_savenetrb.c
index 05ed3be77..3a6d057a9 100755
--- a/src/p_savenetrb.c
+++ b/src/p_savenetrb.c
@@ -4688,6 +4688,10 @@ static void P_NetUnArchiveThinkers(void)
 	iquetail = iquehead = 0;
 	// P_InitThinkers();
 
+	// clear flags (necessary for level-preserving loads)
+	redflag = NULL;
+	blueflag = NULL;
+
 	// clear sector thinker pointers so they don't point to non-existant thinkers for all of eternity
 	for (i = 0; i < numsectors; i++)
 	{
-- 
GitLab