mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-17 00:12:49 +00:00
local_perspective_used now known better
This commit is contained in:
parent
6a1cb13c11
commit
b89ba69fd9
@ -5063,8 +5063,12 @@ EX ld wall_radar(cell *c, transmatrix T, transmatrix LPe, ld max) {
|
|||||||
/** if this is set to ON, just transform non-isotropic spaces according to View, and apply NLP to view */
|
/** if this is set to ON, just transform non-isotropic spaces according to View, and apply NLP to view */
|
||||||
EX bool nonisotropic_weird_transforms;
|
EX bool nonisotropic_weird_transforms;
|
||||||
|
|
||||||
EX void make_actual_view() {
|
EX void decide_lpu() {
|
||||||
nisot::local_perspective_used = gproduct;
|
nisot::local_perspective_used = gproduct;
|
||||||
|
}
|
||||||
|
|
||||||
|
EX void make_actual_view() {
|
||||||
|
decide_lpu();
|
||||||
if(!nisot::local_perspective_used) NLP = Id;
|
if(!nisot::local_perspective_used) NLP = Id;
|
||||||
sphereflip = Id;
|
sphereflip = Id;
|
||||||
sphere_flipped = flip_sphere();
|
sphere_flipped = flip_sphere();
|
||||||
|
@ -2205,6 +2205,7 @@ void ballgeometry() {
|
|||||||
EX void resetview() {
|
EX void resetview() {
|
||||||
DEBBI(DF_GRAPH, ("reset view"));
|
DEBBI(DF_GRAPH, ("reset view"));
|
||||||
// EUCLIDEAN
|
// EUCLIDEAN
|
||||||
|
decide_lpu();
|
||||||
NLP = Id;
|
NLP = Id;
|
||||||
stretch::mstretch_matrix = Id;
|
stretch::mstretch_matrix = Id;
|
||||||
auto& vo = get_view_orientation();
|
auto& vo = get_view_orientation();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user