mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-28 09:54:52 +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()) { }
|
||||
else if(WDIM == 2 || mproduct) {
|
||||
hyperpoint V0 = inverse_shift(Vs, where * tile_center());
|
||||
ld z = 0;
|
||||
if(gproduct) {
|
||||
auto d = product_decompose(V0);
|
||||
z = d.first;
|
||||
V0 = d.second;
|
||||
}
|
||||
|
||||
if(hypot_d(2, tC0(unshift(Vs))) > 1e-3) {
|
||||
Vs = Vs * lrspintox(V0);
|
||||
if(gproduct) Vs = orthogonal_move(Vs, z);
|
||||
}
|
||||
}
|
||||
else if(!sl2) {
|
||||
|
Loading…
Reference in New Issue
Block a user