1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 15:40:26 +00:00

texture:: all-cells-different-textures are now considered correctly mapped if geometry has not been changed

This commit is contained in:
Zeno Rogue 2019-04-08 13:50:51 +02:00
parent 84af8f2b32
commit ccb970f6fe

View File

@ -1511,6 +1511,9 @@ void texture_config::remap() {
if(tstate == tsActive) {
patterns::computeCgroup();
correctly_mapped = patterns::compatible(texture::cgroup, patterns::cgroup);
if(!correctly_mapped)
correctly_mapped =
current_texture_parameters == config.orig_texture_parameters;
if(correctly_mapped) true_remap();
else addMessage(XLAT("Pattern incompatible."));
}