mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-30 02:44:51 +00:00
fixed monster placement in 3D
This commit is contained in:
parent
3092062312
commit
155053c9fb
@ -3261,16 +3261,13 @@ EX bool drawMonster(const shiftmatrix& Vparam, int ct, cell *c, color_t col, col
|
|||||||
if(cgi.emb->is_euc_in_product()) { }
|
if(cgi.emb->is_euc_in_product()) { }
|
||||||
else if(WDIM == 2 || mproduct) {
|
else if(WDIM == 2 || mproduct) {
|
||||||
hyperpoint V0 = inverse_shift(Vs, where * tile_center());
|
hyperpoint V0 = inverse_shift(Vs, where * tile_center());
|
||||||
ld z = 0;
|
|
||||||
if(gproduct) {
|
if(gproduct) {
|
||||||
auto d = product_decompose(V0);
|
auto d = product_decompose(V0);
|
||||||
z = d.first;
|
|
||||||
V0 = d.second;
|
V0 = d.second;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(hypot_d(2, tC0(unshift(Vs))) > 1e-3) {
|
if(hypot_d(2, tC0(unshift(Vs))) > 1e-3) {
|
||||||
Vs = Vs * lrspintox(V0);
|
Vs = Vs * lrspintox(V0);
|
||||||
if(gproduct) Vs = orthogonal_move(Vs, z);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(!sl2) {
|
else if(!sl2) {
|
||||||
|
Loading…
Reference in New Issue
Block a user