mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-17 02:01:35 +00:00
Feed skin and sprite2 through P_GetSkinSprite2 to change sprite2 if necessary (if for instance the supplied sprite2 didn't actually exist)
This commit is contained in:
parent
c9acc3cee4
commit
9703aa2864
1 changed files with 2 additions and 0 deletions
|
@ -468,6 +468,8 @@ static int libd_getSprite2Patch(lua_State *L)
|
|||
if (super)
|
||||
j |= FF_SPR2SUPER;
|
||||
|
||||
j = P_GetSkinSprite2(&skins[i], j, NULL); // feed skin and current sprite2 through to change sprite2 used if necessary
|
||||
|
||||
sprdef = &skins[i].sprites[j];
|
||||
|
||||
// set frame number
|
||||
|
|
Loading…
Reference in a new issue