1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

fixed a bug in rotspace raycasting

This commit is contained in:
Zeno Rogue 2020-07-28 16:43:46 +02:00
parent c9168b59bd
commit 18c96d4e62

View File

@ -2060,7 +2060,7 @@ EX namespace rots {
std::unordered_map<int, transmatrix> saved_matrices_ray; std::unordered_map<int, transmatrix> saved_matrices_ray;
EX transmatrix ray_iadj(cell *c1, int i) { EX transmatrix ray_iadj(cell *c1, int i) {
if(i == c1->type-1) return uzpush(+cgi.plevel) * spin(-2*cgi.plevel); if(i == c1->type-1) return uzpush(-cgi.plevel) * spin(-2*cgi.plevel);
if(i == c1->type-2) return uzpush(+cgi.plevel) * spin(+2*cgi.plevel); if(i == c1->type-2) return uzpush(+cgi.plevel) * spin(+2*cgi.plevel);
cell *c2 = c1->cmove(i); cell *c2 = c1->cmove(i);
int id1 = hybrid::underlying == gArchimedean ? arcm::id_of(c1->master) + 20 * arcm::parent_index_of(c1->master) : shvid(c1); int id1 = hybrid::underlying == gArchimedean ? arcm::id_of(c1->master) + 20 * arcm::parent_index_of(c1->master) : shvid(c1);