diff --git a/SQCSim-common/netprotocol.cpp b/SQCSim-common/netprotocol.cpp index a8c5c9d..acb8783 100644 --- a/SQCSim-common/netprotocol.cpp +++ b/SQCSim-common/netprotocol.cpp @@ -615,10 +615,12 @@ bool netprot::Deserialize(Output* out, char* buf, uint32_t *buflen) { out->states.jumping = states & 0b10000000; out->states.shooting = states & 0b01000000; out->states.hit = states & 0b00100000; - out->states.dead = states & 0b00010000; - out->states.still = states & 0b00001000; - out->states.jumpshot = states & 0b00000100; - out->states.running = states & 0b00000010; + out->states.powerup = states & 0b00010000; + out->states.dead = states & 0b00001000; + out->states.still = states & 0b00000100; + out->states.jumpshot = states & 0b00000010; + out->states.running = states & 0b00000001; + uint8_t subvec[3 * sizeof(uint32_t)] = { 0,0,0,0,0,0,0,0,0,0,0,0 }; memcpy(subvec, &buf[2 + sizeof(uint64_t) * 2], sizeof(uint8_t) * 12);