-
-
Save SamuXarick/9109eef71e3728c692a7f404a8ad36aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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