1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00
luanti/src/database
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
..
CMakeLists.txt Move files to subdirectories (#6599) 2017-11-08 23:56:20 +01:00
database-dummy.cpp Various random code cleanups 2025-03-04 19:53:01 +01:00
database-dummy.h Replace licensing text in headers (LGPLv2.1) (#15321) 2024-10-28 15:57:39 +01:00
database-files.cpp Various random code cleanups 2025-03-04 19:53:01 +01:00
database-files.h Replace licensing text in headers (LGPLv2.1) (#15321) 2024-10-28 15:57:39 +01:00
database-leveldb.cpp Replace licensing text in headers (LGPLv2.1) (#15321) 2024-10-28 15:57:39 +01:00
database-leveldb.h Replace licensing text in headers (LGPLv2.1) (#15321) 2024-10-28 15:57:39 +01:00
database-postgresql.cpp Improve error handling of map database creation 2025-03-04 19:53:01 +01:00
database-postgresql.h Improve error handling of map database creation 2025-03-04 19:53:01 +01:00
database-redis.cpp Update github URL references (#15705) 2025-01-24 16:50:39 +01:00
database-redis.h Replace licensing text in headers (LGPLv2.1) (#15321) 2024-10-28 15:57:39 +01:00
database-sqlite3.cpp Simplify SQLite3 schema types 2025-02-18 19:29:06 +01:00
database-sqlite3.h Improve error handling of map database creation 2025-03-04 19:53:01 +01:00
database.cpp Clean up position encoding 2025-03-16 17:56:58 +01:00
database.h Improve error handling of map database creation 2025-03-04 19:53:01 +01:00