1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed an issue in pure product shmup

This commit is contained in:
Zeno Rogue 2019-11-02 20:28:33 +01:00
parent 7298c8b71e
commit 96224b5c44

View File

@ -1341,6 +1341,10 @@ EX void centerpc(ld aspd) {
T = currentmap->relative_matrix(pc->base, cc, C0) * T;
}
if(WDIM == 2 && !masterless) T = master_relative(pc->base) * T;
if(prod) {
cell *c = hybrid::get_where(pc->base).first;
T = PIU(master_relative(c)) * T;
}
int sl = snakelevel(cwt.at);
if(sl && WDIM == 2) T = T * zpush(cgi.SLEV[sl] - cgi.FLOOR);
View = inverse(T);