mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Some work-in-progress in hp and mobs and a frightening amount of random fixes.
This commit is contained in:
parent
3c61d57f6d
commit
c638442e78
40 changed files with 1837 additions and 920 deletions
|
@ -105,6 +105,12 @@ void compressZlib(SharedBuffer<u8> data, std::ostream &os)
|
|||
|
||||
}
|
||||
|
||||
void compressZlib(const std::string &data, std::ostream &os)
|
||||
{
|
||||
SharedBuffer<u8> databuf((u8*)data.c_str(), data.size());
|
||||
compressZlib(databuf, os);
|
||||
}
|
||||
|
||||
void decompressZlib(std::istream &is, std::ostream &os)
|
||||
{
|
||||
z_stream z;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue