Fix wolf red and dead velocity

Former-commit-id: 2d59c545d3a101e630f56cc0c96d8579508dd99d
This commit is contained in:
timokoesters 2019-05-26 17:34:00 +02:00
parent 3ad8f49f7f
commit 4ebf2e13a5
2 changed files with 1 additions and 15 deletions

View File

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

View File

@ -585,21 +585,6 @@ impl FigureMgr {
};
state.skeleton.interpolate(&target_skeleton);
// Change in health as color!
let col = stats
.and_then(|stats| stats.hp.last_change)
.map(|(change_by, change_time)| Rgba::new(1.0, 0.7, 0.7, 1.0))
.unwrap_or(Rgba::broadcast(1.0));
// Change in health as color!
let col = stats
.and_then(|stats| stats.hp.last_change)
.map(|(change_by, change_time)| Rgba::new(1.0, 0.7, 0.7, 1.0))
.unwrap_or(Rgba::broadcast(1.0));
state.update(renderer, pos.0, dir.0, col);
state.update(renderer, pos.0, dir.0, col);
}
},