From 5a34f40d80ea1a339b599bc11db549a6bd86912f Mon Sep 17 00:00:00 2001 From: kwolekr Date: Mon, 3 Feb 2014 22:42:10 -0500 Subject: Huge overhaul of the entire MapgenParams system MapgenParams is no longer a polymorphic class, eliminating the need for messy and bug-prone reallocations. Separation between the common and mapgen-specific parameters is now strongly defined. Mapgen parameters objects are now properly encapsulated within the proper subsystems. --- src/mapgen_singlenode.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mapgen_singlenode.cpp') diff --git a/src/mapgen_singlenode.cpp b/src/mapgen_singlenode.cpp index fd443995c..5288a1f08 100644 --- a/src/mapgen_singlenode.cpp +++ b/src/mapgen_singlenode.cpp @@ -29,8 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc., //////////////////////// Mapgen Singlenode parameter read/write -bool MapgenSinglenodeParams::readParams(Settings *settings) { - return true; +void MapgenSinglenodeParams::readParams(Settings *settings) { } @@ -39,7 +38,7 @@ void MapgenSinglenodeParams::writeParams(Settings *settings) { /////////////////////////////////////////////////////////////////////////////// -MapgenSinglenode::MapgenSinglenode(int mapgenid, MapgenSinglenodeParams *params) { +MapgenSinglenode::MapgenSinglenode(int mapgenid, MapgenParams *params) { flags = params->flags; } -- cgit v1.2.3