Skip to content

Commit

Permalink
Decoration: Fix default parameter values
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed Dec 30, 2014
1 parent cfec470 commit b589353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/script/lua_api/l_mapgen.cpp
Expand Up @@ -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 "
Expand Down

0 comments on commit b589353

Please sign in to comment.