mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +00:00
texture:: correct cell-matrices after remapping -- helps when going back to overlay
This commit is contained in:
parent
26e2927ed2
commit
925a3af3ad
@ -1365,6 +1365,7 @@ void drawLine(hyperpoint h1, hyperpoint h2, int col, int steps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void texture_config::remap(eTextureState old_tstate, eTextureState old_tstate_max) {
|
void texture_config::remap(eTextureState old_tstate, eTextureState old_tstate_max) {
|
||||||
|
drawthemap();
|
||||||
clear_texture_map();
|
clear_texture_map();
|
||||||
if(old_tstate == tsActive && patterns::compatible(texture::cgroup, patterns::cgroup)) {
|
if(old_tstate == tsActive && patterns::compatible(texture::cgroup, patterns::cgroup)) {
|
||||||
|
|
||||||
@ -1396,7 +1397,7 @@ void texture_config::remap(eTextureState old_tstate, eTextureState old_tstate_ma
|
|||||||
|
|
||||||
auto& mi2 = texture_map[si.id];
|
auto& mi2 = texture_map[si.id];
|
||||||
mi2 = mi;
|
mi2 = mi;
|
||||||
mapTexture(c, mi2, si, Id, pshift);
|
mapTexture(c, mi2, si, shmup::ggmatrix(c), pshift);
|
||||||
mapTexture2(mi2);
|
mapTexture2(mi2);
|
||||||
mi2.tvertices = move(new_tvertices);
|
mi2.tvertices = move(new_tvertices);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user