diff options
| author | Fuwn <[email protected]> | 2024-06-03 15:37:20 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-03 15:37:20 +0000 |
| commit | 967774fc048b9d0738fbd13998ed77b6b70effa2 (patch) | |
| tree | e0f9d650a221476852005eeaac96224584a3a76a /crates/whirl_server/src/cmd/commands | |
| parent | format: rustfmt with new rules (diff) | |
| download | whirl-967774fc048b9d0738fbd13998ed77b6b70effa2.tar.xz whirl-967774fc048b9d0738fbd13998ed77b6b70effa2.zip | |
refactor(crates): update idioms
Diffstat (limited to 'crates/whirl_server/src/cmd/commands')
| -rw-r--r-- | crates/whirl_server/src/cmd/commands/appear_actor.rs | 4 | ||||
| -rw-r--r-- | crates/whirl_server/src/cmd/commands/register_object_id.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/whirl_server/src/cmd/commands/appear_actor.rs b/crates/whirl_server/src/cmd/commands/appear_actor.rs index 836c681..6100fcc 100644 --- a/crates/whirl_server/src/cmd/commands/appear_actor.rs +++ b/crates/whirl_server/src/cmd/commands/appear_actor.rs @@ -25,8 +25,8 @@ impl Creatable for AppearActor { command.put_i8(Command::ApprActr as i32 as i8); // Type // Content - command.put_i8(self.short_object_id as i8); // ObjId, why is it here? Worlds... - command.put_u16(self.room_id as u16); // Room ID + command.put_i8(self.short_object_id); // ObjId, why is it here? Worlds... + command.put_u16(self.room_id); // Room ID command.put_u16(self.x as u16); // X command.put_u16(self.y as u16); // Y command.put_u16(self.z as u16); // Z diff --git a/crates/whirl_server/src/cmd/commands/register_object_id.rs b/crates/whirl_server/src/cmd/commands/register_object_id.rs index 7791ae2..bdf4bca 100644 --- a/crates/whirl_server/src/cmd/commands/register_object_id.rs +++ b/crates/whirl_server/src/cmd/commands/register_object_id.rs @@ -23,7 +23,7 @@ impl Creatable for RegisterObjectId { // Content command.put_u8(self.long_object_id.len() as u8); // Long object ID length command.put_slice(self.long_object_id.as_bytes()); // Long object ID - command.put_i8(self.short_object_id as i8); // Short object ID + command.put_i8(self.short_object_id); // Short object ID // Length let mut command_as_vec = command.to_vec(); |