From ed9bdd7ae5111ec6c646a7f74e6f05e0adc47c2e Mon Sep 17 00:00:00 2001 From: Andrew James Date: Wed, 30 Aug 2023 19:51:59 +1000 Subject: [PATCH] Remove duplicated HeadlessMode check in LoadPlrGfx Already checked at the start of the function, none of the sprite data lookups change that global. --- Source/player.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Source/player.cpp b/Source/player.cpp index a71164741..e807a103c 100644 --- a/Source/player.cpp +++ b/Source/player.cpp @@ -2155,9 +2155,6 @@ void LoadPlrGFX(Player &player, player_graphic graphic) app_fatal("PLR:2"); } - if (HeadlessMode) - return; - char prefix[3] = { CharChar[static_cast(cls)], ArmourChar[player._pgfxnum >> 4], WepChar[static_cast(animWeaponId)] }; char pszName[256]; *fmt::format_to(pszName, R"(plrgfx\{0}\{1}\{1}{2})", path, std::string_view(prefix, 3), szCel) = 0;