Skip to content

Commit

Permalink
Use delayed screen rebuilding with lua terrain fcn
Browse files Browse the repository at this point in the history
This is a fixup for ac59b0d
  • Loading branch information
cbeck88 committed Jun 21, 2014
1 parent da8f3c8 commit f8a4347
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/scripting/lua.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit f8a4347

Please sign in to comment.