Some fixes for spritestuff2
This commit is contained in:
parent
e95a05880f
commit
071ec73389
|
@ -74,7 +74,7 @@ static void Patch_FreeData(patch_t *patch)
|
||||||
HWR_FreeTexture(patch);
|
HWR_FreeTexture(patch);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (i = 0; i < 2; i++)
|
for (i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
if (patch->flats[i])
|
if (patch->flats[i])
|
||||||
Z_Free(patch->flats[i]);
|
Z_Free(patch->flats[i]);
|
||||||
|
|
|
@ -296,7 +296,7 @@ boolean R_AddSingleSpriteDef(const char *sprname, spritedef_t *spritedef, UINT16
|
||||||
if (!isPNG)
|
if (!isPNG)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
W_ReadLumpHeaderPwad(wadnum, l, &patch, sizeof (patch_t), 0);
|
W_ReadLumpHeaderPwad(wadnum, l, &patch, sizeof(INT16) * 4, 0);
|
||||||
width = SHORT(patch.width);
|
width = SHORT(patch.width);
|
||||||
height = SHORT(patch.height);
|
height = SHORT(patch.height);
|
||||||
topoffset = SHORT(patch.topoffset);
|
topoffset = SHORT(patch.topoffset);
|
||||||
|
|
Loading…
Reference in a new issue