From d393434d567cc27425c904e3239f330447baf2c6 Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Wed, 24 Oct 2012 23:49:34 +0000 Subject: [PATCH] - Fixed: Broke UDMF in PK3 loader. SVN r3905 (trunk) --- src/p_setup.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/p_setup.cpp b/src/p_setup.cpp index 075c934dc..d3c43723f 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -417,15 +417,12 @@ MapData *P_OpenMapData(const char * mapname) if (i == 1 && !strnicmp(lumpname, "TEXTMAP", 8)) { map->isText = true; + map->MapLumps[ML_TEXTMAP].Reader = map->resource->GetLump(i)->NewReader(); + strncpy(map->MapLumps[ML_TEXTMAP].Name, lumpname, 8); for(int i = 2;; i++) { lumpname = map->resource->GetLump(i)->Name; - long v = strlen(lumpname); - if (v < 8) - { - I_Error("Invalid map definition for %s", mapname); - } - else if (!strnicmp(lumpname, "ZNODES",8)) + if (!strnicmp(lumpname, "ZNODES",8)) { index = ML_GLZNODES; }