mirror of
https://github.com/knightfox75/nds_nflib.git
synced 2025-06-19 01:05:34 -04:00
library: Small cleanup
This commit is contained in:
parent
e15a8402b5
commit
ce24bbc52e
@ -430,10 +430,10 @@ void NF_Vram3dSpritePal(u32 id, u32 slot)
|
|||||||
void NF_Create3dSprite(u32 id, u32 gfx, u32 pal, s32 x, s32 y)
|
void NF_Create3dSprite(u32 id, u32 gfx, u32 pal, s32 x, s32 y)
|
||||||
{
|
{
|
||||||
if (id > (NF_3DSPRITES - 1))
|
if (id > (NF_3DSPRITES - 1))
|
||||||
NF_Error(106, "3D sprite", (NF_3DSPRITES - 1));
|
NF_Error(106, "3D sprite", NF_3DSPRITES - 1);
|
||||||
|
|
||||||
if (gfx > (NF_3DSPRITES - 1))
|
if (gfx > (NF_3DSPRITES - 1))
|
||||||
NF_Error(106, "3D sprite gfx", (NF_3DSPRITES - 1));
|
NF_Error(106, "3D sprite gfx", NF_3DSPRITES - 1);
|
||||||
|
|
||||||
if (!NF_TEX256VRAM[gfx].inuse)
|
if (!NF_TEX256VRAM[gfx].inuse)
|
||||||
NF_Error(111, "3D Sprite GFX", gfx);
|
NF_Error(111, "3D Sprite GFX", gfx);
|
||||||
|
Loading…
Reference in New Issue
Block a user