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

Use binary operators rather than "Python modulo" in decoding block positions

This commit is contained in:
ShadowNinja 2014-04-15 16:07:53 -04:00
parent 118e2ae865
commit 54ffe2e5de
2 changed files with 19 additions and 23 deletions

View file

@ -34,8 +34,8 @@ public:
virtual void saveBlock(MapBlock *block)=0;
virtual MapBlock* loadBlock(v3s16 blockpos)=0;
s64 getBlockAsInteger(const v3s16 pos);
v3s16 getIntegerAsBlock(s64 i);
s64 getBlockAsInteger(const v3s16 pos) const;
v3s16 getIntegerAsBlock(const s64 i) const;
virtual void listAllLoadableBlocks(std::list<v3s16> &dst)=0;
virtual int Initialized(void)=0;
virtual ~Database() {};