diff options
author | kwolekr <kwolekr@minetest.net> | 2013-11-17 02:22:24 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-11-17 02:22:24 -0500 |
commit | cca4f09ba15eca707a6ae1717a00fcf73c6efa6f (patch) | |
tree | bcd1139352f516d7b36b59ceed35fd5c276bf17b /src/script/lua_api/l_mapgen.cpp | |
parent | e396fb29840c3b87b0442fe6d641c94e8165ed27 (diff) | |
download | minetest-cca4f09ba15eca707a6ae1717a00fcf73c6efa6f.tar.gz minetest-cca4f09ba15eca707a6ae1717a00fcf73c6efa6f.tar.bz2 minetest-cca4f09ba15eca707a6ae1717a00fcf73c6efa6f.zip |
Decoration: Stop DecoSimple::resolveNodeNames from complaining about no node name if decolist is used
Fix warning message for spawnby nodes
Prevent type-punning warning caused by casting enum to int
Diffstat (limited to 'src/script/lua_api/l_mapgen.cpp')
-rw-r--r-- | src/script/lua_api/l_mapgen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index 822685e34..b0ad202be 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -522,11 +522,11 @@ int ModApiMapgen::l_place_schematic(lua_State *L) if (!read_schematic(L, 2, &dschem, getServer(L))) return 0; - Rotation rot = ROTATE_0; + int rot = ROTATE_0; if (lua_isstring(L, 3)) - string_to_enum(es_Rotation, (int &)rot, std::string(lua_tostring(L, 3))); + string_to_enum(es_Rotation, rot, std::string(lua_tostring(L, 3))); - dschem.rotation = rot; + dschem.rotation = (Rotation)rot; if (lua_istable(L, 4)) { int index = 4; |