Fix MSVC warnings. (#5619)
This commit is contained in:
parent
71677765c5
commit
28288fafb1
2 changed files with 72 additions and 68 deletions
|
|
@ -82,10 +82,10 @@ int main(void)
|
|||
ModelAnimation *anims = LoadModelAnimations("resources/models/gltf/greenman.glb", &animCount);
|
||||
|
||||
// Use specific animation indices: 2-walk/move, 3-attack
|
||||
unsigned int animIndex0 = 2; // Walk/Move animation (index 2)
|
||||
unsigned int animIndex1 = 3; // Attack animation (index 3)
|
||||
unsigned int animCurrentFrame0 = 0;
|
||||
unsigned int animCurrentFrame1 = 0;
|
||||
int animIndex0 = 2; // Walk/Move animation (index 2)
|
||||
int animIndex1 = 3; // Attack animation (index 3)
|
||||
int animCurrentFrame0 = 0;
|
||||
int animCurrentFrame1 = 0;
|
||||
|
||||
// Validate indices
|
||||
if (animIndex0 >= animCount) animIndex0 = 0;
|
||||
|
|
|
|||
|
|
@ -357,8 +357,10 @@
|
|||
#elif defined(USE_LIBTYPE_SHARED)
|
||||
#define RAYGUIAPI __declspec(dllimport) // Using the library as a Win32 shared library (.dll)
|
||||
#endif
|
||||
#if !defined(_CRT_SECURE_NO_WARNINGS)
|
||||
#define _CRT_SECURE_NO_WARNINGS // Disable unsafe warnings on scanf() functions in MSVC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Function specifiers definition
|
||||
#ifndef RAYGUIAPI
|
||||
|
|
|
|||
Loading…
Reference in a new issue