diff --git a/nonisotropic.cpp b/nonisotropic.cpp index 25f3a452..0d770da9 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -2083,7 +2083,7 @@ EX namespace rots { return spin(beta) * uxpush(distance/2) * spin(-beta+alpha); } - std::map saved_matrices_ray; + EX std::map saved_matrices_ray; EX transmatrix ray_iadj(cell *c1, int i) { if(i == c1->type-1) return uzpush(-cgi.plevel) * spin(-2*cgi.plevel); diff --git a/raycaster.cpp b/raycaster.cpp index c43f9565..c564f5ef 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -1675,7 +1675,10 @@ struct raycast_map { unique_ptr rmap; -EX void reset_raycaster() { our_raycaster = nullptr; rmap = nullptr; } +EX void reset_raycaster() { + our_raycaster = nullptr; rmap = nullptr; + rots::saved_matrices_ray = {}; + } EX void cast() { // may call itself recursively in case of bugs -- just in case...