Skip to content
Snippets Groups Projects
Commit bf5c4a1b authored by sphere's avatar sphere
Browse files

Merge branch 'handle-missing-frame-gracefully' into 'next'

Handle missing frames for sprites gracefully

See merge request !2039
parents 610ddc03 8d8257b4
Branches
Tags
1 merge request!2039Handle missing frames for sprites gracefully
...@@ -534,7 +534,7 @@ static void R_LoadSkinSprites(UINT16 wadnum, UINT16 *lump, UINT16 *lastlump, ski ...@@ -534,7 +534,7 @@ static void R_LoadSkinSprites(UINT16 wadnum, UINT16 *lump, UINT16 *lastlump, ski
R_AddSingleSpriteDef(spr2names[sprite2], &skin->sprites[sprite2], wadnum, *lump, *lastlump); R_AddSingleSpriteDef(spr2names[sprite2], &skin->sprites[sprite2], wadnum, *lump, *lastlump);
if (skin->sprites[0].numframes == 0) if (skin->sprites[0].numframes == 0)
I_Error("R_LoadSkinSprites: no frames found for sprite SPR2_%s\n", spr2names[0]); CONS_Alert(CONS_ERROR, M_GetText("No frames found for sprite SPR2_%s\n"), spr2names[0]);
} }
// returns whether found appropriate property // returns whether found appropriate property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment