mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-09 07:30:09 +00:00
mstretch fixup
This commit is contained in:
parent
6c99b70f16
commit
b8b24af6ff
@ -1299,11 +1299,18 @@ EX void cast() {
|
|||||||
|
|
||||||
int ray_fixes = 0;
|
int ray_fixes = 0;
|
||||||
|
|
||||||
|
transmatrix msm = stretch::mstretch_matrix;
|
||||||
|
|
||||||
back:
|
back:
|
||||||
for(int a=0; a<cs->type; a++)
|
for(int a=0; a<cs->type; a++)
|
||||||
if(hdist0(hybrid::ray_iadj(cs, a) * tC0(T)) < hdist0(tC0(T))) {
|
if(hdist0(hybrid::ray_iadj(cs, a) * tC0(T)) < hdist0(tC0(T))) {
|
||||||
println(hlog, "ray error");
|
println(hlog, "ray error");
|
||||||
T = currentmap->iadj(cs, a) * T;
|
T = currentmap->iadj(cs, a) * T;
|
||||||
|
if(o->uToOrig != -1) {
|
||||||
|
transmatrix HT = currentmap->adj(cs, a);
|
||||||
|
HT = stretch::itranslate(tC0(HT)) * HT;
|
||||||
|
msm = HT * msm;
|
||||||
|
}
|
||||||
cs = cs->move(a);
|
cs = cs->move(a);
|
||||||
ray_fixes++;
|
ray_fixes++;
|
||||||
if(ray_fixes > 100) return;
|
if(ray_fixes > 100) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user