summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorkwolekr <mirrorisim@gmail.com>2013-02-13 22:43:15 -0500
committerkwolekr <mirrorisim@gmail.com>2013-02-25 22:56:18 -0500
commitb9d8e59bbf727fcc1a073bbf27e5d1703b9490ef (patch)
tree629dba18aab743e66b88858f5385cf4ba36d0328 /src/map.h
parent6d0ea26c2d62c3774ff384cf1bfc2a3372b49a3b (diff)
downloadminetest-b9d8e59bbf727fcc1a073bbf27e5d1703b9490ef.tar.gz
minetest-b9d8e59bbf727fcc1a073bbf27e5d1703b9490ef.tar.bz2
minetest-b9d8e59bbf727fcc1a073bbf27e5d1703b9490ef.zip
Add emerge.cpp, initial EmergeThread changes
- Neatly placed all emerge related code into a new file, emerge.cpp - Greatly cleaned up the code in EmergeThread::Thread() - Reworked Emerge queue. Now an actual std::queue of v3s16 block positions - Removed the completely unnecessary map of peer ids requesting blocks
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map.h b/src/map.h
index 1c91745c0..0b2311f39 100644
--- a/src/map.h
+++ b/src/map.h
@@ -46,6 +46,8 @@ class MapBlock;
class NodeMetadata;
class IGameDef;
class IRollbackReportSink;
+class EmergeManager;
+class BlockMakeData;
/*
@@ -378,7 +380,7 @@ public:
Blocks are generated by using these and makeBlock().
*/
void initBlockMake(BlockMakeData *data, v3s16 blockpos);
- MapBlock* finishBlockMake(BlockMakeData *data,
+ MapBlock *finishBlockMake(BlockMakeData *data,
core::map<v3s16, MapBlock*> &changed_blocks);
// A non-threaded wrapper to the above - DEFUNCT