From 4376c6b415656d97082db529c2a277a4f1849ebc Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 3 Apr 2009 02:37:01 +0000 Subject: [PATCH] - Fixed: Doom's status bar was lacking its default face. - Fixed: Custom skin face graphics were not added to the texture manager. SVN r1519 (trunk) --- docs/rh-log.txt | 2 ++ src/v_collection.cpp | 8 ++++++++ wadsrc/static/sbarinfo/doom.txt | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 64629b74a..382105171 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,6 @@ April 2, 2009 +- Fixed: Doom's status bar was lacking its default face. +- Fixed: Custom skin face graphics were not added to the texture manager. - Fixed: UseHealthItems() gave you health equal to the number of items in the stack of health items, rather than the item's proper amount. diff --git a/src/v_collection.cpp b/src/v_collection.cpp index b8ee25d8f..f1aa2b630 100644 --- a/src/v_collection.cpp +++ b/src/v_collection.cpp @@ -63,6 +63,14 @@ void FImageCollection::Add (const char **patchNames, int numPatches, int namespc for (int i = 0; i < numPatches; ++i) { FTextureID picnum = TexMan.CheckForTexture(patchNames[i], namespc); + if (!picnum.isValid()) + { + int lumpnum = Wads.CheckNumForName(patchNames[i], namespc); + if (lumpnum >= 0) + { + picnum = TexMan.CreateTexture(lumpnum, namespc); + } + } ImageMap[OldCount + i] = picnum; } } diff --git a/wadsrc/static/sbarinfo/doom.txt b/wadsrc/static/sbarinfo/doom.txt index 2d5ff536a..bd53f7a06 100644 --- a/wadsrc/static/sbarinfo/doom.txt +++ b/wadsrc/static/sbarinfo/doom.txt @@ -110,7 +110,7 @@ statusbar normal // Standard Doom Status bar } drawselectedinventory alternateonempty, INDEXFONT, 143, 168 { - drawmugshot 5, 143, 168; + drawmugshot "STF", 5, 143, 168; } }