1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00
Commit graph

3 commits

Author SHA1 Message Date
Erich Schubert
1f3cf59c7f Clean up position encoding
We can simply add 0x800800800 to the encoding, then use bit masking.

This works because adding 0x800 maps -2048:2047 to 0x000:0xFFF.
And 0x800800800 is (0x800 << 24 + 0x800 << 12 + 0x800) for x,y,z.

After bitmasking, -0x800 restores the original value range.
2025-03-16 17:56:58 +01:00
sfence
d849d51c2d
Replace licensing text in headers (LGPLv2.1) (#15321) 2024-10-28 15:57:39 +01:00
Vitaliy
20a85d76d9 Move files to subdirectories (#6599)
* Move files around
2017-11-08 23:56:20 +01:00
Renamed from src/database.cpp (Browse further)