From 925a3af3ad9957ae2d19ae982a3d7959d4d87b58 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 6 Apr 2018 00:38:37 +0200 Subject: [PATCH] texture:: correct cell-matrices after remapping -- helps when going back to overlay --- textures.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/textures.cpp b/textures.cpp index 9fa42c6f..7718fb07 100644 --- a/textures.cpp +++ b/textures.cpp @@ -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) { + drawthemap(); clear_texture_map(); 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]; mi2 = mi; - mapTexture(c, mi2, si, Id, pshift); + mapTexture(c, mi2, si, shmup::ggmatrix(c), pshift); mapTexture2(mi2); mi2.tvertices = move(new_tvertices); }