From 54ffe2e5de9ce44129f84f4748743f893b75fda7 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Tue, 15 Apr 2014 16:07:53 -0400 Subject: Use binary operators rather than "Python modulo" in decoding block positions --- src/database.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/database.h') diff --git a/src/database.h b/src/database.h index 4ce80ed93..a86861379 100644 --- a/src/database.h +++ b/src/database.h @@ -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 &dst)=0; virtual int Initialized(void)=0; virtual ~Database() {}; -- cgit v1.2.3