aboutsummaryrefslogtreecommitdiff
path: root/server/src/entity
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-19 23:18:14 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-19 23:21:31 +0200
commit01e5b30e84e2fe1203b222175d18420411f111e2 (patch)
tree76205cb2b1e2a814ad1732dc2264a57daa7be8bb /server/src/entity
parentcaa0e7cc27bfab46a6df20622f40b7f1eef7c971 (diff)
downloadhurrycurry-01e5b30e84e2fe1203b222175d18420411f111e2.tar
hurrycurry-01e5b30e84e2fe1203b222175d18420411f111e2.tar.bz2
hurrycurry-01e5b30e84e2fe1203b222175d18420411f111e2.tar.zst
send addressed player in hint packet
Diffstat (limited to 'server/src/entity')
-rw-r--r--server/src/entity/tutorial.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/entity/tutorial.rs b/server/src/entity/tutorial.rs
index 68503471..39f761bc 100644
--- a/server/src/entity/tutorial.rs
+++ b/server/src/entity/tutorial.rs
@@ -38,6 +38,7 @@ impl Entity for Tutorial {
if let Some((position, _)) = self.current_hint {
c.packet_out.push_back(PacketC::ServerHint {
position,
+ player: self.player,
message: None,
});
}
@@ -81,11 +82,13 @@ impl Entity for Tutorial {
if let Some((position, _)) = self.current_hint.take() {
c.packet_out.push_back(PacketC::ServerHint {
position,
+ player: self.player,
message: None,
});
}
if let Some((position, message)) = hint.clone() {
c.packet_out.push_back(PacketC::ServerHint {
+ player: self.player,
position,
message: Some(message),
});