library: Fix typo in function name

This commit is contained in:
Antonio Niño Díaz 2023-05-01 03:02:26 +01:00
parent 7dd92e646b
commit 92f39078a1
3 changed files with 9 additions and 6 deletions

View File

@ -164,11 +164,11 @@ int main(int argc, char **argv) {
NF_Set3dSpritePriority(TARGET, prio);
}
// Restaura la prioridad por defecto
if (keys & KEY_X) NF_3dSpriteSetDeep(TARGET, 0);
if (keys & KEY_X) NF_3dSpriteSetDepth(TARGET, 0);
// Fuerza estar al frente
if (keys & KEY_R) NF_3dSpriteSetDeep(TARGET, -512);
if (keys & KEY_R) NF_3dSpriteSetDepth(TARGET, -512);
// Fuerza estar al fondo
if (keys & KEY_L) NF_3dSpriteSetDeep(TARGET, 512);
if (keys & KEY_L) NF_3dSpriteSetDepth(TARGET, 512);
// Dibuja los 3D Sprites
NF_Draw3dSprites();

View File

@ -403,7 +403,10 @@ void NF_3dSpriteGetPalColor(u8 pal, u8 number, u8* r, u8* g, u8* b);
///
/// Change the sprite depth to prevent it from intersecting with other sprites
/// when rotation or zoom are applied.
void NF_3dSpriteSetDeep(u8 id, s16 z);
void NF_3dSpriteSetDepth(u8 id, s16 z);
// Defines for backwards compatibility
#define NF_3dSpriteSetDeep NF_3dSpriteSetDepth
/// @}

View File

@ -1089,8 +1089,8 @@ void NF_3dSpriteGetPalColor(u8 pal, u8 number, u8* r, u8* g, u8* b) {
}
// Funcion NF_3dSpriteSetDeep();
void NF_3dSpriteSetDeep(u8 id, s16 z) {
// Funcion NF_3dSpriteSetDepth();
void NF_3dSpriteSetDepth(u8 id, s16 z) {
// Asigna la profundidad
NF_3DSPRITE[id].z = z;