mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
small code quality change
This commit is contained in:
parent
c631341da9
commit
2b36a957ac
@ -4358,7 +4358,12 @@ impl<'a> AgentData<'a> {
|
|||||||
fn emit_alarm(&self, time: f64, event_emitter: &mut Emitter<'_, ServerEvent>) {
|
fn emit_alarm(&self, time: f64, event_emitter: &mut Emitter<'_, ServerEvent>) {
|
||||||
if let Some(body) = self.body {
|
if let Some(body) = self.body {
|
||||||
event_emitter.emit(ServerEvent::Sound {
|
event_emitter.emit(ServerEvent::Sound {
|
||||||
sound: Sound::new(SoundKind::Utterance(UtteranceKind::Scream, *body), self.pos.0, 100.0, time),
|
sound: Sound::new(
|
||||||
|
SoundKind::Utterance(UtteranceKind::Scream, *body),
|
||||||
|
self.pos.0,
|
||||||
|
100.0,
|
||||||
|
time,
|
||||||
|
),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user