Actions
Feature #642
closedclient: keep track of continent and ocean sizes
Start date:
05/18/2024
Due date:
% Done:
0%
Estimated time:
Description
Update (known) continent and ocean sizes whenever tile info changes.
Files
Actions
Added by Alina Lenk over 1 year ago. Updated over 1 year ago.
0%
Description
Update (known) continent and ocean sizes whenever tile info changes.
Files
| 0002-Client-Keep-track-of-continent-and-ocean-sizes.patch (4.71 KB) 0002-Client-Keep-track-of-continent-and-ocean-sizes.patch | main | Alina Lenk, 05/18/2024 09:23 PM | |
| 0002-Client-Keep-track-of-continent-and-ocean-sizes.patch (11.5 KB) 0002-Client-Keep-track-of-continent-and-ocean-sizes.patch | main v2 | Alina Lenk, 05/18/2024 11:55 PM |
Note: This patch does not include any code determining whether the current count is the actual full size of a given region, or whether the region is still bordering unknown tiles. We'll want something like that eventually, but we'll have to find a good spot to do it after we've received updated info for all tiles.
Alina Lenk wrote in #note-3:
we'll have to find a good spot to do it
Found a way to track it incrementally; updated the patch. This does add client-specific data to the civ_map struct that needs to be freed, so map_free() now also takes a server_side parameter (like map_init()).