From a2606a1677382d0e042a0987be62c3f986432cef Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Fri, 10 Jan 2025 09:57:48 +0100 Subject: [PATCH] fix loading VILE\* sprite lump files from PK3 directories (#2136) Fixes #2131 --- src/r_things.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/r_things.c b/src/r_things.c index 975fac568..a136a4221 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -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);