mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 18:35:39 +00:00
Fix [terrain_mask][rule]layer=
This commit is contained in:
parent
a97a04e2e9
commit
3e31fdb7fb
@ -1037,7 +1037,7 @@ int game_lua_kernel::intf_terrain_mask(lua_State *L)
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
|
||||
if(luaW_tableget(L, -1, "mode")) {
|
||||
if(luaW_tableget(L, -1, "layer")) {
|
||||
auto str = luaW_tostring(L, -1);
|
||||
rule.mode_ = str == "base" ? terrain_type_data::BASE : (str == "overlay" ? terrain_type_data::OVERLAY : terrain_type_data::BOTH);
|
||||
lua_pop(L, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user