commit e03f775902d666e65f1d06332871a80b0e3cc10f
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Tue Aug 5 17:46:06 2014 +0200
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Tue Aug 5 17:46:06 2014 +0200
call InitializeSections() in DEH_LoadLump()
apparently, this has been forgotten before, so DEH_PointerInit()
was not executed which meant that *some* DEHACKED patches
would not work when loaded from within a PWAD but would work
when extracted from that WAD and loaded via -deh.
fixes #421
---
src/deh_main.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/deh_main.c b/src/deh_main.c
index ff0236b1..c98962a9 100644
--- a/src/deh_main.c
+++ b/src/deh_main.c
@@ -346,6 +346,12 @@ int DEH_LoadLump(int lumpnum, boolean allow_long)
deh_context_t *context;
boolean long_strings, long_cheats;
+ if (!deh_initialized)
+ {
+ InitializeSections();
+ deh_initialized = true;
+ }
+
if (allow_long)
{
long_strings = deh_allow_long_strings;