Skip to content

Commit

Permalink
fix loading VILE\* sprite lump files from PK3 directories (#2136)
Browse files Browse the repository at this point in the history
Fixes #2131
  • Loading branch information
fabiangreffrath authored Jan 10, 2025
1 parent 866f5d8 commit a2606a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/r_things.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a2606a1

Please sign in to comment.