mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
gp:: shmup:: fix to calc_relative_matrix (only _help was fixed)
This commit is contained in:
parent
9fd8713cbc
commit
56fe281674
10
shmup.cpp
10
shmup.cpp
@ -3333,8 +3333,14 @@ transmatrix calc_relative_matrix(cell *c, heptagon *h1) {
|
|||||||
transmatrix gm = Id;
|
transmatrix gm = Id;
|
||||||
heptagon *h2 = c->master;
|
heptagon *h2 = c->master;
|
||||||
transmatrix where = Id;
|
transmatrix where = Id;
|
||||||
for(int d=0; d<S7; d++) if(h2->c7->mov[d] == c)
|
|
||||||
where = hexmove[d];
|
if(gp::on && c != c->master->c7) {
|
||||||
|
auto li = gp::get_local_info(c);
|
||||||
|
where = gp::Tf[li.last_dir][li.relative.first&31][li.relative.second&31][fix6(li.total_dir)];
|
||||||
|
}
|
||||||
|
else if(!nonbitrunc)
|
||||||
|
for(int d=0; d<S7; d++) if(h2->c7->mov[d] == c)
|
||||||
|
where = hexmove[d];
|
||||||
// always add to last!
|
// always add to last!
|
||||||
//bool hsol = false;
|
//bool hsol = false;
|
||||||
//transmatrix sol;
|
//transmatrix sol;
|
||||||
|
Loading…
Reference in New Issue
Block a user