mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-24 13:21:20 +00:00
Fix R_AddSingleSpriteDef for short sprite names
This commit is contained in:
parent
4ebda932bb
commit
761a972927
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ boolean R_AddSingleSpriteDef(const char *sprname, spritedef_t *spritedef, UINT16
|
|||
{
|
||||
// For long sprites, the startlump-endlump range only includes
|
||||
// relevant lumps, so no check needed in that case
|
||||
if (longname || !memcmp(lumpinfo[l].name, sprname, 4))
|
||||
if (longname || (strlen(sprname) == 4 && !memcmp(lumpinfo[l].name, sprname, 4)))
|
||||
{
|
||||
INT16 width, height;
|
||||
INT16 topoffset, leftoffset;
|
||||
|
|
Loading…
Reference in a new issue