mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
[Protocol] Fix common quake 2 player score conversion
This commit is contained in:
parent
f7e93fd7cd
commit
58f7ff8aab
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue