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
|
@ -215,8 +215,8 @@ inline void writeU16(std::ostream &os, u16 p)
|
|||
}
|
||||
inline u16 readU16(std::istream &is)
|
||||
{
|
||||
char buf[12];
|
||||
is.read(buf, 12);
|
||||
char buf[2];
|
||||
is.read(buf, 2);
|
||||
return readU16((u8*)buf);
|
||||
}
|
||||
|
||||
|
@ -228,8 +228,8 @@ inline void writeF1000(std::ostream &os, f32 p)
|
|||
}
|
||||
inline f32 readF1000(std::istream &is)
|
||||
{
|
||||
char buf[12];
|
||||
is.read(buf, 12);
|
||||
char buf[2];
|
||||
is.read(buf, 2);
|
||||
return readF1000((u8*)buf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue