summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2014-07-08 20:04:37 +0200
committersfan5 <sfan5@live.de>2014-07-12 17:38:17 +0200
commiteec456be63f6fee8604f7a9c40aa41a1af3f1fac (patch)
treee97d792d648fa6f76c1479ac3e978ada2c075a48 /src/map.h
parent3feece1f2887eda368c0a9e42e3ab26b4b754354 (diff)
downloadminetest-eec456be63f6fee8604f7a9c40aa41a1af3f1fac.tar.gz
minetest-eec456be63f6fee8604f7a9c40aa41a1af3f1fac.tar.bz2
minetest-eec456be63f6fee8604f7a9c40aa41a1af3f1fac.zip
Move MapBlock (de)serializing code out of Database class
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.h b/src/map.h
index f4c7bb2fc..9b505d8e6 100644
--- a/src/map.h
+++ b/src/map.h
@@ -270,7 +270,7 @@ public:
// Server implements this.
// Client leaves it as no-op.
- virtual bool saveBlock(MapBlock *block){ return false; };
+ virtual bool saveBlock(MapBlock *block) { return false; };
/*
Updates usage timers and unloads unused blocks and sectors.
@@ -485,6 +485,7 @@ public:
// Returns true if sector now resides in memory
//bool deFlushSector(v2s16 p2d);
+ bool saveBlock(MapBlock *block, Database *db);
bool saveBlock(MapBlock *block);
// This will generate a sector with getSector if not found.
void loadBlock(std::string sectordir, std::string blockfile, MapSector *sector, bool save_after_load=false);
@@ -560,4 +561,3 @@ protected:
};
#endif
-