Use delayed screen rebuilding with lua terrain fcn
This is a fixup for ac59b0d0e7
This commit is contained in:
parent
da8f3c824c
commit
f8a4347262
1 changed files with 1 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue