[Protocol] Fix common quake 2 player score conversion

This commit is contained in:
CosminPerRam 2023-06-27 01:08:42 +03:00
parent f7e93fd7cd
commit 58f7ff8aab

View file

@ -31,7 +31,7 @@ impl CommonPlayer for Player {
fn name(&self) -> &str { &self.name }
fn score(&self) -> Option<u32> { Some(self.score.into()) }
fn score(&self) -> Option<u32> { Some(self.score.try_into().unwrap_or(0)) }
}
pub(crate) struct QuakeTwo;