Skip to content

Instantly share code, notes, and snippets.

@SamuXarick
Last active February 7, 2023 14:57
Show Gist options
  • Save SamuXarick/9109eef71e3728c692a7f404a8ad36aa to your computer and use it in GitHub Desktop.
Save SamuXarick/9109eef71e3728c692a7f404a8ad36aa to your computer and use it in GitHub Desktop.
const TileIndexDiffC *data;
update_freq = normal_tiles.size() / 5;
auto tile_count = 0, gwp = 0;
for (auto &tile : normal_tiles) {
tile_count++;
if (gwp == 0 || tile_count == update_freq && gwp < 5) {
IncreaseGeneratingWorldProgress(GWP_LANDSCAPE);
if (gwp != 0) tile_count = 0;
gwp++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment