move padding logic from elseware into here
This commit is contained in:
parent
26261ab2b1
commit
afe1de0536
@ -257,7 +257,12 @@ pub struct PlayerChat {
|
||||
}
|
||||
|
||||
impl PlayerChat {
|
||||
pub fn new(padding: u32, guildcard: u32, message: String) -> PlayerChat {
|
||||
pub fn new(padding: u32, guildcard: u32, mut message: String) -> PlayerChat {
|
||||
let mut mlen = (message.len() * 2) + 0x12;
|
||||
while mlen & 0x07 != 0 {
|
||||
message.push('\0');
|
||||
mlen += 1;
|
||||
}
|
||||
PlayerChat {
|
||||
padding: padding,
|
||||
guildcard: guildcard,
|
||||
|
Loading…
x
Reference in New Issue
Block a user