add case
This commit is contained in:
@@ -68,7 +68,7 @@ void sceneMapEntityGetPosition(const entity_t *entity, vec3 outPosition) {
|
||||
|
||||
// Add animation offset(s)
|
||||
switch(entity->animation) {
|
||||
case ENTITY_ANIM_WALK:
|
||||
case ENTITY_ANIM_WALK: {
|
||||
float_t animPercentage = entity->animTime / ENTITY_ANIM_WALK_DURATION;
|
||||
|
||||
vec3 lastPosition;
|
||||
@@ -79,6 +79,7 @@ void sceneMapEntityGetPosition(const entity_t *entity, vec3 outPosition) {
|
||||
glm_vec3_scale(offset, -animPercentage, offset);
|
||||
glm_vec3_add(outPosition, offset, outPosition);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user