summarylogtreecommitdiffstats
path: root/0001-prevent-crashes-with-simultaneous-use-of-record-and-.patch
blob: e2a83b3774c5ed72b7095d9d85ec4c21fa2c8fff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 211dd1a8b36dc5fecd4bc5149f54ffc1a6a85315 Mon Sep 17 00:00:00 2001
From: Fabian Greffrath <fabian@greffrath.com>
Date: Tue, 22 Sep 2020 12:18:33 +0200
Subject: [PATCH] prevent crashes with simultaneous use of -record and
 -pistolstart

Thanks Spie812.
---
 src/doom/g_game.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/doom/g_game.c b/src/doom/g_game.c
index 934d8bf7..84332889 100644
--- a/src/doom/g_game.c
+++ b/src/doom/g_game.c
@@ -886,6 +886,7 @@ void G_DoLoadLevel (void)
             const char message[] = "The -pistolstart option is not suppported"
                                    " for demos and\n"
                                    " network play.";
+            if (!demo_p) demorecording = false;
             I_Error(message);
         }
     }
-- 
2.28.0