1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-17 18:59:59 +00:00

reset raycaster if wo>=rays

This commit is contained in:
Zeno Rogue 2020-06-03 15:13:30 +02:00
parent 2a0b0101fd
commit 6ad9d520db

View File

@ -1239,6 +1239,7 @@ EX void cast() {
int wo = wall_offset(c);
if(wo >= irays) {
println(hlog, "wo=", wo, " irays = ", irays);
reset_raycaster();
return;
}
transmatrix T = currentmap->iadj(c, i) * inverse(ms[wo + i]);