From 44c4736de3d49dd0c451504c5544d5692d30828a Mon Sep 17 00:00:00 2001
From: Braden Obrzut <admin@maniacsvault.net>
Date: Fri, 10 Jan 2014 02:16:41 -0500
Subject: [PATCH] - Ignore unknown properties in the GAMEINFO lump instead of
 throwing an error.

---
 src/d_main.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/d_main.cpp b/src/d_main.cpp
index f0e7e7676e..86a9fad110 100644
--- a/src/d_main.cpp
+++ b/src/d_main.cpp
@@ -1861,6 +1861,15 @@ static FString ParseGameInfo(TArray<FString> &pwads, const char *fn, const char
 			sc.MustGetString();
 			DoomStartupInfo.Song = sc.String;
 		}
+		else
+		{
+			// Silently ignore unknown properties
+			do
+			{
+				sc.MustGetAnyToken();
+			}
+			while(sc.CheckToken(','));
+		}
 	}
 	return iwad;
 }