fix loading VILE\* sprite lump files from PK3 directories (#2136)

Fixes #2131
This commit is contained in:
Fabian Greffrath 2025-01-10 09:57:48 +01:00 committed by GitHub
parent 866f5d8dd3
commit a2606a1677
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -136,6 +136,11 @@ void R_InitSpritesRes(void)
static void R_InstallSpriteLump(int lump, unsigned frame,
unsigned rotation, boolean flipped)
{
if (frame == '^' - 'A')
{
frame = '\\' - 'A';
}
if (frame >= MAX_SPRITE_FRAMES || rotation > 8)
I_Error("R_InstallSpriteLump: Bad frame characters in lump %i", lump);