diff --git a/src/ship/location.rs b/src/ship/location.rs index a0c05f5..a40f858 100644 --- a/src/ship/location.rs +++ b/src/ship/location.rs @@ -109,6 +109,12 @@ impl LocalClientId { } } +impl PartialEq for LocalClientId { + fn eq(&self, other: &u8) -> bool { + self.0 == *other as usize + } +} + #[derive(Debug, Copy, Clone, PartialEq)] pub struct AreaClient { pub client: ClientId,