Fixed 1-frame animation bug

Former-commit-id: fc591de5026e35cab1ef72ce250b19cbe2fcec0e
This commit is contained in:
Joshua Barretto 2019-04-12 17:03:42 +01:00
parent 413bdf44e5
commit 824fb8a6c0

View File

@ -91,9 +91,9 @@ impl Figures {
.entry(entity)
.or_insert_with(|| FigureState::new(renderer, CharacterSkeleton::new()));
state.update(renderer, pos.0, dir.0);
RunAnimation::update_skeleton(&mut state.skeleton, time);
state.update(renderer, pos.0, dir.0);
}
self.states.retain(|entity, _| ecs.entities().is_alive(*entity));