This commit is contained in:
SpiralP 2020-07-07 00:41:07 -07:00
parent 331651bf34
commit 21b97d2dc4

View File

@ -559,9 +559,6 @@ static float CustomModel_GetAnimationValue(
struct Entity* e struct Entity* e
) { ) {
switch (anim->type) { switch (anim->type) {
case CustomModelAnimType_None:
return;
case CustomModelAnimType_Head: case CustomModelAnimType_Head:
return -e->Pitch * MATH_DEG2RAD; return -e->Pitch * MATH_DEG2RAD;
@ -612,6 +609,8 @@ static float CustomModel_GetAnimationValue(
case CustomModelAnimType_SinTranslateVelocity: case CustomModelAnimType_SinTranslateVelocity:
return ( Math_SinF(e->Anim.WalkTime * anim->a + 2 * MATH_PI * anim->c) + anim->d ) * anim->b; 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]; static PackedCol oldCols[FACE_COUNT];