Skip to content

Commit

Permalink
Add player ID bitmask for weird IDs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantaylor committed Jun 3, 2024
1 parent 5f9c4ea commit 1818c57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vault"
version = "9.0.0"
version = "9.0.1"
edition = "2021"
authors = ["Ryan Taylor <2320507+ryantaylor@users.noreply.github.com>"]

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vault

[![crates.io](https://img.shields.io/crates/v/vault.svg)](https://crates.io/crates/vault) [![Documentation](https://img.shields.io/badge/View-Documentation-blue.svg)](https://docs.rs/vault/9.0.0/vault/)
[![crates.io](https://img.shields.io/crates/v/vault.svg)](https://crates.io/crates/vault) [![Documentation](https://img.shields.io/badge/View-Documentation-blue.svg)](https://docs.rs/vault/9.0.1/vault/)

`vault` is a Company of Heroes replay parsing library written in [Rust](https://www.rust-lang.org/). It has been completely rewritten for Company of Heroes 3 to provide a more intuitive interface while simplifying the code and leveraging [nom](https://github.com/rust-bakery/nom)'s parser combinators to enable clean, fast parsing of Company of Heroes 3 replay files.

Expand Down Expand Up @@ -112,7 +112,7 @@ Ruby bindings have some additional compatibility requirements, such as `libclang

# Documentation

Documentation for `vault` [can be viewed online](https://docs.rs/vault/9.0.0/vault/).
Documentation for `vault` [can be viewed online](https://docs.rs/vault/9.0.1/vault/).

Alternatively, you can easily build an offline copy of the documentation for yourself with `cargo`:

Expand Down
4 changes: 2 additions & 2 deletions src/data/ticks/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl Command {
tuple((le_u8, CommandData::parser_for_type(action_type))),
|(player_id, data)| Command {
action_type,
player_id,
player_id: player_id & 0b0111_1111, // bit mask to turn eg 0x87 into 0x7
data,
},
)(input)
Expand All @@ -116,7 +116,7 @@ impl Command {
)),
|((bytes, _), player_id, data)| Command {
action_type,
player_id,
player_id: player_id & 0b0111_1111, // bit mask to turn eg 0x87 into 0x7,
data,
bytes,
},
Expand Down

0 comments on commit 1818c57

Please sign in to comment.