mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Deal with compiler warnings
This commit is contained in:
parent
faecff570c
commit
a89afe1229
12 changed files with 30 additions and 30 deletions
14
src/map.h
14
src/map.h
|
@ -327,7 +327,7 @@ public:
|
|||
- Create blank filled with CONTENT_IGNORE
|
||||
|
||||
*/
|
||||
MapBlock *emergeBlock(v3s16 p, bool create_blank=true);
|
||||
MapBlock *emergeBlock(v3s16 p, bool create_blank=true) override;
|
||||
|
||||
/*
|
||||
Try to get a block.
|
||||
|
@ -349,27 +349,27 @@ public:
|
|||
static MapDatabase *createDatabase(const std::string &name, const std::string &savedir, Settings &conf);
|
||||
|
||||
// Call these before and after saving of blocks
|
||||
void beginSave();
|
||||
void endSave();
|
||||
void beginSave() override;
|
||||
void endSave() override;
|
||||
|
||||
void save(ModifiedState save_level);
|
||||
void save(ModifiedState save_level) override;
|
||||
void listAllLoadableBlocks(std::vector<v3s16> &dst);
|
||||
void listAllLoadedBlocks(std::vector<v3s16> &dst);
|
||||
|
||||
MapgenParams *getMapgenParams();
|
||||
|
||||
bool saveBlock(MapBlock *block);
|
||||
bool saveBlock(MapBlock *block) override;
|
||||
static bool saveBlock(MapBlock *block, MapDatabase *db, int compression_level = -1);
|
||||
MapBlock* loadBlock(v3s16 p);
|
||||
// Database version
|
||||
void loadBlock(std::string *blob, v3s16 p3d, MapSector *sector, bool save_after_load=false);
|
||||
|
||||
bool deleteBlock(v3s16 blockpos);
|
||||
bool deleteBlock(v3s16 blockpos) override;
|
||||
|
||||
void updateVManip(v3s16 pos);
|
||||
|
||||
// For debug printing
|
||||
virtual void PrintInfo(std::ostream &out);
|
||||
void PrintInfo(std::ostream &out) override;
|
||||
|
||||
bool isSavingEnabled(){ return m_map_saving_enabled; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue