From a5d9d334d2e5a6da912dbd694729b26942c8247a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 1 Mar 2019 20:21:15 +0100 Subject: [PATCH] - fixed: The lump renaming was not performed for Doom, even for those pieces where needed. --- src/gamedata/w_wad.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gamedata/w_wad.cpp b/src/gamedata/w_wad.cpp index d20eebe23..40af891ca 100644 --- a/src/gamedata/w_wad.cpp +++ b/src/gamedata/w_wad.cpp @@ -810,7 +810,9 @@ void FWadCollection::RenameSprites () case GAME_Doom: default: // Doom's sprites don't get renamed. - return; + renames = nullptr; + numrenames = 0; + break; case GAME_Heretic: renames = HereticRenames; @@ -893,7 +895,8 @@ void FWadCollection::RenameSprites () else if (LumpInfo[i].lump->Namespace == ns_global) { // Rename the game specific big font lumps so that the font manager does not have to do problematic special checks for them. - if (!strcmp(LumpInfo[i].lump->Name, altbigfont)) strcpy(LumpInfo[i].lump->Name, "BIGFONT"); + if (!strcmp(LumpInfo[i].lump->Name, altbigfont)) + strcpy(LumpInfo[i].lump->Name, "BIGFONT"); } } }