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

product:: some computations need gmatrix0 for underlying geometry

This commit is contained in:
Zeno Rogue 2019-08-18 18:45:05 +02:00
parent 3c8e9a5c94
commit e59e180b87

View File

@ -618,6 +618,7 @@ EX namespace product {
EX pair<cell*, int> get_where(cell *c) { return ((hrmap_product*)currentmap)->where[c]; }
void drawcell_stack(cell *c, transmatrix V, int spinv, bool mirrored) {
if(sphere) gmatrix[c] = V; /* some computations need gmatrix0 for underlying geometry */
in_actual([&] { for(int z=-5; z<=5; z++) drawcell(get_at(c, current_view_level+z), V * mscale(Id, plevel * z), spinv, mirrored); });
}