1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-28 09:09:39 +00:00

[General] Allow single bit booleans in packets

This commit is contained in:
Koncord 2017-06-02 21:03:29 +08:00
parent 9742b0a801
commit c2600bac8e

View file

@ -70,17 +70,10 @@ namespace mwmp
void RW(bool &data, bool write)
{
char _data;
if (write)
{
_data = data;
bs->Write(_data);
}
bs->Write(data);
else
{
bs->Read(_data);
data = _data;
}
bs->Read(data);
}
void RW(std::string &str, bool write, bool compress = 0)