Decoration: Fix default parameter values
authorkwolekr <kwolekr@minetest.net>
Tue, 30 Dec 2014 05:52:17 +0000 (00:52 -0500)
committerkwolekr <kwolekr@minetest.net>
Tue, 30 Dec 2014 05:52:40 +0000 (00:52 -0500)
src/script/lua_api/l_mapgen.cpp

index b7d7d096e23389afa68525250d0f7e85f33e38d8..9e6eacff8323c815e569fcef75d0467a94c9d094 100644 (file)
@@ -522,8 +522,8 @@ int ModApiMapgen::l_register_decoration(lua_State *L)
 
        deco->name       = getstringfield_default(L, index, "name", "");
        deco->fill_ratio = getfloatfield_default(L, index, "fill_ratio", 0.02);
-       deco->height_min = getintfield_default(L, index, "height_min", 31000);
-       deco->height_max = getintfield_default(L, index, "height_max", -31000);
+       deco->height_min = getintfield_default(L, index, "height_min", -31000);
+       deco->height_max = getintfield_default(L, index, "height_max", 31000);
        deco->sidelen    = getintfield_default(L, index, "sidelen", 8);
        if (deco->sidelen <= 0) {
                errorstream << "register_decoration: sidelen must be "