mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
More direct comments
This commit is contained in:
parent
0d69a258b1
commit
7b5d9e1eac
@ -522,7 +522,7 @@ pub fn handle_possess(server: &mut Server, possessor_uid: Uid, possessee_uid: Ui
|
||||
character: ecs.read_storage::<comp::Stats>().get(possessee).map(|s| {
|
||||
msg::CharacterInfo {
|
||||
name: s.name.clone(),
|
||||
// NOTE: hack, read docs for humanoid_gender() for more
|
||||
// NOTE: hack, read docs on body::Gender for more
|
||||
gender: s.original_body.humanoid_gender(),
|
||||
}
|
||||
}),
|
||||
|
@ -724,7 +724,7 @@ impl StateExt for State {
|
||||
self.notify_players(ServerGeneral::PlayerListUpdate(
|
||||
PlayerListUpdate::SelectedCharacter(player_uid, CharacterInfo {
|
||||
name: String::from(&stats.name),
|
||||
// NOTE: hack, read docs for humanoid_gender() for more
|
||||
// NOTE: hack, read docs on body::Gender for more
|
||||
gender: stats.original_body.humanoid_gender(),
|
||||
}),
|
||||
));
|
||||
|
@ -99,7 +99,7 @@ impl<'a> System<'a> for Sys {
|
||||
player_alias: player.alias.clone(),
|
||||
character: stats.map(|stats| CharacterInfo {
|
||||
name: stats.name.clone(),
|
||||
// NOTE: hack, read docs for humanoid_gender()
|
||||
// NOTE: hack, read docs for body::Gender for more
|
||||
gender: stats.original_body.humanoid_gender(),
|
||||
}),
|
||||
uuid: player.uuid(),
|
||||
|
Loading…
Reference in New Issue
Block a user