mirror of
https://codeberg.org/demostf/parser.git
synced 2026-11-30 02:30:46 +01:00
fix SignOnStateMessage::count type
This commit is contained in:
parent
2bb0a60171
commit
3cc6951766
2 changed files with 3 additions and 2 deletions
|
|
@ -5,6 +5,7 @@
|
|||
in demos, but are used in the network protocol.
|
||||
- `Message::encode` now write the message type by itself, instead of requiring
|
||||
the caller to do so beforehand.
|
||||
- `SignOnStateMessage::count` has been changed from an `u32` to an `i32`.
|
||||
|
||||
## 0.7.2
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use crate::Stream;
|
||||
/// Messages that consists only of primitives and string and can be derived
|
||||
use crate::demo::data::{MaybeUtf8String, ServerTick};
|
||||
use crate::Stream;
|
||||
#[cfg(feature = "write")]
|
||||
use bitbuffer::BitWrite;
|
||||
use bitbuffer::{BitRead, LittleEndian};
|
||||
|
|
@ -51,7 +51,7 @@ pub enum SignOnState {
|
|||
#[cfg_attr(feature = "write", derive(BitWrite))]
|
||||
pub struct SignOnStateMessage {
|
||||
pub state: SignOnState,
|
||||
pub count: u32,
|
||||
pub count: i32,
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue