aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Zhuravlev <zhuravlevilya@ya.ru>2013-02-07 16:17:55 +0400
committerIlya Zhuravlev <zhuravlevilya@ya.ru>2013-02-07 16:17:55 +0400
commit86b33c4922e83cc4f3800212762f341a9e56a904 (patch)
tree64b792f73f07794092bf533fd6f73cdd7c612bb7
parent97260d09a8e658b6ded7d9100b0aa1040fcfe50f (diff)
downloadminetest-86b33c4922e83cc4f3800212762f341a9e56a904.tar.gz
minetest-86b33c4922e83cc4f3800212762f341a9e56a904.tar.bz2
minetest-86b33c4922e83cc4f3800212762f341a9e56a904.zip
Fix compile error (MSVC2010).
-rw-r--r--src/mapgen.cpp2
-rw-r--r--src/mapgen.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp
index 5a78a541e..b19073e90 100644
--- a/src/mapgen.cpp
+++ b/src/mapgen.cpp
@@ -179,7 +179,7 @@ void EmergeManager::setParamsToSettings(Settings *settings) {
}
-bool EmergeManager::registerMapgen(std::string mgname, MapgenFactory *mgfactory) {
+void EmergeManager::registerMapgen(std::string mgname, MapgenFactory *mgfactory) {
mglist.insert(std::make_pair(mgname, mgfactory));
infostream << "EmergeManager: registered mapgen " << mgname << std::endl;
}
diff --git a/src/mapgen.h b/src/mapgen.h
index febf37e63..4f1ab4ebd 100644
--- a/src/mapgen.h
+++ b/src/mapgen.h
@@ -122,7 +122,7 @@ public:
Mapgen *getMapgen();
void addBlockToQueue();
- bool registerMapgen(std::string name, MapgenFactory *mgfactory);
+ void registerMapgen(std::string name, MapgenFactory *mgfactory);
MapgenParams *getParamsFromSettings(Settings *settings);
void setParamsToSettings(Settings *settings);