diff options
author | kwolekr <kwolekr@minetest.net> | 2013-09-16 23:52:42 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-09-16 23:52:42 -0400 |
commit | c0398224ef60b73067351d3e8f7a6e0d1ff7df72 (patch) | |
tree | 3f1432db70b8b3ef001f289b07deaca8430e050b /src/script/lua_api | |
parent | 9bccd75e340d7502251c233418e0afccd9c4a49c (diff) | |
download | minetest-c0398224ef60b73067351d3e8f7a6e0d1ff7df72.tar.gz minetest-c0398224ef60b73067351d3e8f7a6e0d1ff7df72.tar.bz2 minetest-c0398224ef60b73067351d3e8f7a6e0d1ff7df72.zip |
Fix some warnings and other minor details
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_mapgen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index 14693b43f..822685e34 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -484,7 +484,7 @@ int ModApiMapgen::l_create_schematic(lua_State *L) v3s16 pos = read_v3s16(L, -1); lua_pop(L, 1); - u8 prob = getintfield_default(L, -1, "prob", 0xFF); + u8 prob = getintfield_default(L, -1, "prob", MTSCHEM_PROB_ALWAYS); probability_list.push_back(std::make_pair(pos, prob)); } |