HomeWildfire Games

Always update preview in biome and landscape

Description

Always update preview in biome and landscape

Introduced in rP23392.
Landscape and Biome previews are not updated correctly when reopeneing gamesetup.
To solve that, remove lastBiome and lastLandscape and always try to update preview if preview file exists and does not match with current one.

Differential revision: D3041
Reviewed by: @Freagarach
Fixes: #5785

Event Timeline

Stan added a subscriber: Stan.Nov 9 2020, 10:52 AM

In gamesetup, load mainland notice preview is green, set biome to desert, notice it's desert, set it back to random, notice it's still desert. Not raising a concern as I'm not sure it's from this patch.

Silier added a comment.Nov 9 2020, 5:28 PM

it is using random as biome so we should have mainland_random preview file, and because we do not have, it keeps one currently set and when opening first time, it keeps default one