mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
oop
This commit is contained in:
parent
331651bf34
commit
21b97d2dc4
@ -559,9 +559,6 @@ static float CustomModel_GetAnimationValue(
|
||||
struct Entity* e
|
||||
) {
|
||||
switch (anim->type) {
|
||||
case CustomModelAnimType_None:
|
||||
return;
|
||||
|
||||
case CustomModelAnimType_Head:
|
||||
return -e->Pitch * MATH_DEG2RAD;
|
||||
|
||||
@ -612,6 +609,8 @@ static float CustomModel_GetAnimationValue(
|
||||
case CustomModelAnimType_SinTranslateVelocity:
|
||||
return ( Math_SinF(e->Anim.WalkTime * anim->a + 2 * MATH_PI * anim->c) + anim->d ) * anim->b;
|
||||
}
|
||||
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
static PackedCol oldCols[FACE_COUNT];
|
||||
|
Loading…
x
Reference in New Issue
Block a user