remove manual padding
This commit is contained in:
parent
f07845807d
commit
c8b5781443
@ -257,12 +257,7 @@ pub struct PlayerChat {
|
||||
}
|
||||
|
||||
impl PlayerChat {
|
||||
pub fn new(guildcard: u32, mut message: String) -> PlayerChat {
|
||||
let mut mlen = (message.len() * 2) + 0x12;
|
||||
while mlen & 0x07 != 0 {
|
||||
message.push('\0');
|
||||
mlen += 1;
|
||||
}
|
||||
pub fn new(guildcard: u32, message: String) -> PlayerChat {
|
||||
PlayerChat {
|
||||
unknown: 0x00010000,
|
||||
guildcard: guildcard,
|
||||
|
Loading…
x
Reference in New Issue
Block a user