mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-24 02:01:17 +00:00
Make v.getSprite2Patch able to fallback to non-super sprites
This commit is contained in:
parent
a67a6ca3b8
commit
52b88d63fe
1 changed files with 4 additions and 0 deletions
|
@ -613,6 +613,10 @@ static int libd_getSprite2Patch(lua_State *L)
|
||||||
if (super)
|
if (super)
|
||||||
j |= SPR2F_SUPER;
|
j |= SPR2F_SUPER;
|
||||||
|
|
||||||
|
// If there is no "super" variation of this sprite, try with the normal one.
|
||||||
|
if (!P_IsValidSprite2(skins[i], j))
|
||||||
|
j &= ~SPR2F_SUPER;
|
||||||
|
|
||||||
sprdef = P_GetSkinSpritedef(skins[i], j);
|
sprdef = P_GetSkinSpritedef(skins[i], j);
|
||||||
|
|
||||||
// set frame number
|
// set frame number
|
||||||
|
|
Loading…
Reference in a new issue