From 85ba35a1f1933c673e554f31c27139a682f36cef Mon Sep 17 00:00:00 2001 From: Professor Hastig Date: Fri, 15 Sep 2023 09:20:00 +0200 Subject: [PATCH] - fix Strife-style startup asset check. The STARTUP0 check is not only redundant but also was wrong. It already gets checked and validated in the asset loading loop, and this up-front check did not handle placement as a graphic. --- src/common/startscreen/startscreen_strife.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/common/startscreen/startscreen_strife.cpp b/src/common/startscreen/startscreen_strife.cpp index 5b1d48bf4a..df5467f966 100644 --- a/src/common/startscreen/startscreen_strife.cpp +++ b/src/common/startscreen/startscreen_strife.cpp @@ -105,18 +105,10 @@ protected: FStrifeStartScreen::FStrifeStartScreen(int max_progress) : FStartScreen(max_progress) { - // at this point we do not have a working texture manager yet, so we have to do the lookup via the file system - - int startup_lump = fileSystem.CheckNumForName("STARTUP0"); - - if (startup_lump < 0) - { - I_Error("bad startscreen assets"); - } - StartupBitmap.Create(320, 200); - // Load the animated overlays. + // at this point we do not have a working texture manager yet, so we have to do the lookup via the file system + // Load the background and animated overlays. for (size_t i = 0; i < countof(StrifeStartupPicNames); ++i) { int lumpnum = fileSystem.CheckNumForName(StrifeStartupPicNames[i], FileSys::ns_graphics);