Fix velocity while dead on client

Former-commit-id: e308e1b8848a38fd9fd776ddd8acb81e145429a6
This commit is contained in:
timokoesters 2019-05-26 20:25:51 +02:00
parent c67d3287e2
commit 74761b7f9c

View File

@ -216,6 +216,7 @@ impl Server {
if let Some(client) = self.clients.get_mut(&entity) {
self.state
.write_component(entity, comp::phys::Vel(Vec3::zero()));
self.state.write_component(entity, comp::phys::ForceUpdate);
client.force_state(ClientState::Dead);
} else {
self.state.ecs_mut().delete_entity_synced(entity);