commit 4746d23891ba45977b5f615859455a4ae7ec6f6c
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sun Oct 22 19:13:44 2017 -0400
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Sun Oct 22 19:13:44 2017 -0400
strife: Move D_IdentifyVersion() earlier in startup.
D_IdentifyVersion() as well as identifying the game version also
loads voices.wad. In order to support WADs which replace lumps from
voices.wad, this needs to be loaded before any PWADs are loaded; this
is also consistent with vanilla Strife behavior. The voices.wad file
was also being loaded after initialization of the WAD file hash table,
which was less efficient.
This fixes #906. Thanks @Catoptromancy for reporting.
---
src/strife/d_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/strife/d_main.c b/src/strife/d_main.c
index 3cbbb6dc..ef1aec00 100644
--- a/src/strife/d_main.c
+++ b/src/strife/d_main.c
@@ -1726,6 +1726,7 @@ void D_DoomMain (void)
DEH_printf("W_Init: Init WADfiles.\n");
D_AddFile(iwadfile);
W_CheckCorrectIWAD(strife);
+ D_IdentifyVersion();
// Load dehacked patches specified on the command line.
DEH_ParseCommandLine();
@@ -1815,8 +1816,7 @@ void D_DoomMain (void)
// Generate the WAD hash table. Speed things up a bit.
W_GenerateHashTable();
-
- D_IdentifyVersion();
+
InitGameVersion();
InitTitleString();
D_SetGameDescription();