mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-17 17:41:57 +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
|
// For long sprites, the startlump-endlump range only includes
|
||||||
// relevant lumps, so no check needed in that case
|
// 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 width, height;
|
||||||
INT16 topoffset, leftoffset;
|
INT16 topoffset, leftoffset;
|
||||||
|
|
Loading…
Reference in a new issue