From e87cdedefc8d77b816d1e05cff0a21c3762153b6 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 6 Jun 2019 12:47:33 +0300 Subject: [PATCH] - fixed hires texture lookup in Doomsday style .pk3 IWAD wasn't detected properly, and wrong texture can be picked as a hires replacement (e.g., SLADRIP1 from Ultimate Doom instead of TNT) https://forum.zdoom.org/viewtopic.php?t=64915 --- src/gamedata/textures/hires/hirestex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gamedata/textures/hires/hirestex.cpp b/src/gamedata/textures/hires/hirestex.cpp index 3ba988eda8..b322d3188b 100644 --- a/src/gamedata/textures/hires/hirestex.cpp +++ b/src/gamedata/textures/hires/hirestex.cpp @@ -49,7 +49,7 @@ static void SetDoom2Wad() { if (Doom2Wad == -1) { - FString iwad = Wads.GetWadFullName(1); + FString iwad = Wads.GetWadFullName(Wads.GetIwadNum()); iwad.ToLower(); if (iwad.IndexOf("plutonia") >= 0) Doom2Wad = 1; else if (iwad.IndexOf("tnt") >= 0) Doom2Wad = 2;