foxygit / doom Log in
commit 1f950e4b9f68cab3c8c4f8fb97043f8fa4edeb16
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Thu Mar 20 14:27:12 2014 +0100
Commit:     Fabian Greffrath <fabian@greffrath.com>
CommitDate: Thu Mar 20 14:27:12 2014 +0100

    Print a warning if the user is attempting to record or playback a demo or connect to a network game using one of the BFG Edition IWADs.
---
 src/doom/d_main.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index 4068f677..f302f772 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -417,6 +417,17 @@ boolean D_GrabMouseCallback(void)
 //
 void D_DoomLoop (void)
 {
+    if (bfgedition &&
+        (demorecording || (gameaction == ga_playdemo) || netgame))
+    {
+        I_PrintDivider();
+        printf(" WARNING: You are playing using one of the Doom Classic\n"
+               " IWAD files shipped with the Doom 3: BFG Edition. These are\n"
+               " known to be incompatible with the regular IWAD files and\n"
+               " may cause demos and network games to get out of sync.\n");
+        I_PrintDivider();
+    }
+
     if (demorecording)
 	G_BeginRecording ();