Merge branch 'fix-velocity' into 'master'

Fix velocity while dead on client

See merge request veloren/veloren!183

Former-commit-id: f1a5aa879d27a102e176ed25fc6d3d8ad67a0238
This commit is contained in:
Timo Koesters 2019-05-26 18:39:31 +00:00
commit 276dbd97cf

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);