mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 09:58:15 +00:00
Use delayed screen rebuilding with lua terrain fcn
This is a fixup for ac59b0d0e72c706a6e14fe59cb77ceaabcc7bce2
This commit is contained in:
parent
da8f3c824c
commit
f8a4347262
@ -1290,11 +1290,7 @@ static int intf_set_terrain(lua_State *L)
|
||||
}
|
||||
|
||||
bool result = resources::gameboard->change_terrain(map_location(x - 1, y - 1), t_str, mode_str, replace_if_failed);
|
||||
if (result) {
|
||||
resources::screen->recalculate_minimap();
|
||||
resources::screen->invalidate_all();
|
||||
resources::screen->rebuild_all();
|
||||
}
|
||||
game_events::context::screen_needs_rebuild(result);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user