summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-09-02 12:54:36 +0200
committerRay <[email protected]>2023-09-02 12:54:36 +0200
commit6e18d96e7ad45e63c15b5e1f6f2ca52d2e9fab4a (patch)
tree309db374a75429811fc0770e711bb37a972ec318 /src
parent0f447f1fb6aeed5e3e807d123978b7feca240d1a (diff)
downloadraylib-6e18d96e7ad45e63c15b5e1f6f2ca52d2e9fab4a.tar.gz
raylib-6e18d96e7ad45e63c15b5e1f6f2ca52d2e9fab4a.zip
Some tweaks
Diffstat (limited to 'src')
-rw-r--r--src/raylib.h2
-rw-r--r--src/rcore.c2
-rw-r--r--src/rmodels.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 084fb4dc..6f67d839 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1509,7 +1509,7 @@ RLAPI void SetModelMeshMaterial(Model *model, int meshId, int materialId);
RLAPI ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount); // Load model animations from file
RLAPI void UpdateModelAnimation(Model model, ModelAnimation anim, int frame); // Update model animation pose
RLAPI void UnloadModelAnimation(ModelAnimation anim); // Unload animation data
-RLAPI void UnloadModelAnimations(ModelAnimation *animations, unsigned int count); // Unload animation array data
+RLAPI void UnloadModelAnimations(ModelAnimation *animations, int animCount); // Unload animation array data
RLAPI bool IsModelAnimationValid(Model model, ModelAnimation anim); // Check model animation skeleton match
// Collision detection functions
diff --git a/src/rcore.c b/src/rcore.c
index 2c53eb5e..912f85c0 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -601,7 +601,7 @@ static const char *autoEventTypeName[] = {
"ACTION_SETTARGETFPS"
};
-// Automation Event (24 bytes)
+// Automation event (24 bytes)
typedef struct AutomationEvent {
unsigned int frame; // Event frame
unsigned int type; // Event type (AutomationEventType)
diff --git a/src/rmodels.c b/src/rmodels.c
index 66de9727..5a6d98ac 100644
--- a/src/rmodels.c
+++ b/src/rmodels.c
@@ -2099,9 +2099,9 @@ void UpdateModelAnimation(Model model, ModelAnimation anim, int frame)
}
// Unload animation array data
-void UnloadModelAnimations(ModelAnimation *animations, unsigned int count)
+void UnloadModelAnimations(ModelAnimation *animations, int animCount)
{
- for (unsigned int i = 0; i < count; i++) UnloadModelAnimation(animations[i]);
+ for (int i = 0; i < animCount; i++) UnloadModelAnimation(animations[i]);
RL_FREE(animations);
}