summarylogtreecommitdiffstats
path: root/0001-prevent-crashes-with-simultaneous-use-of-record-and-.patch
diff options
context:
space:
mode:
authorMike Swanson2020-09-22 10:10:06 -0700
committerMike Swanson2020-09-22 10:10:06 -0700
commit19cead4088f1d11a7937ca4f4e093f1de0e912fe (patch)
treeafde3eb24a61646d211de3f3d5483c9b8f95fa53 /0001-prevent-crashes-with-simultaneous-use-of-record-and-.patch
parentd3844bb1c6e8be28427fde53269699b68ecaa280 (diff)
downloadaur-19cead4088f1d11a7937ca4f4e093f1de0e912fe.tar.gz
Include patch to not crash when combining -record -pistolstart
Diffstat (limited to '0001-prevent-crashes-with-simultaneous-use-of-record-and-.patch')
-rw-r--r--0001-prevent-crashes-with-simultaneous-use-of-record-and-.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/0001-prevent-crashes-with-simultaneous-use-of-record-and-.patch b/0001-prevent-crashes-with-simultaneous-use-of-record-and-.patch
new file mode 100644
index 000000000000..e2a83b3774c5
--- /dev/null
+++ b/0001-prevent-crashes-with-simultaneous-use-of-record-and-.patch
@@ -0,0 +1,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
+