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/dungeongen.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/dungeongen.cpp') diff --git a/src/dungeongen.cpp b/src/dungeongen.cpp index ff0a39e9e..2027b7f13 100644 --- a/src/dungeongen.cpp +++ b/src/dungeongen.cpp @@ -31,12 +31,9 @@ with this program; if not, write to the Free Software Foundation, Inc., //#define DGEN_USE_TORCHES -NoiseParams nparams_dungeon_rarity = - {0.0, 1.0, v3f(500.0, 500.0, 500.0), 0, 2, 0.8}; -NoiseParams nparams_dungeon_wetness = - {0.0, 1.0, v3f(40.0, 40.0, 40.0), 32474, 4, 1.1}; -NoiseParams nparams_dungeon_density = - {0.0, 1.0, v3f(2.5, 2.5, 2.5), 0, 2, 1.4}; +NoiseParams nparams_dungeon_rarity(0.0, 1.0, v3f(500.0, 500.0, 500.0), 0, 2, 0.8); +NoiseParams nparams_dungeon_wetness(0.0, 1.0, v3f(40.0, 40.0, 40.0), 32474, 4, 1.1); +NoiseParams nparams_dungeon_density(0.0, 1.0, v3f(2.5, 2.5, 2.5), 0, 2, 1.4); /////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3