mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-03 11:17:56 +00:00
switching nisot::geodesic_movement now automatically switches the perspective -- basically, light also moves as chosen
This commit is contained in:
10
geom-exp.cpp
10
geom-exp.cpp
@@ -1102,8 +1102,14 @@ EX void showEuclideanMenu() {
|
||||
dialog::add_action_push(show3D);
|
||||
}
|
||||
menuitem_projection('1');
|
||||
if(nonisotropic && !sl2 && !embedded_plane)
|
||||
dialog::addBoolItem_action(XLAT("geodesic movement in Sol/Nil"), nisot::geodesic_movement, 'G');
|
||||
if(nonisotropic && !sl2 && !embedded_plane) {
|
||||
dialog::addBoolItem(XLAT("geodesic movement in Sol/Nil"), nisot::geodesic_movement, 'G');
|
||||
dialog::add_action([] {
|
||||
nisot::geodesic_movement = !nisot::geodesic_movement;
|
||||
if(pmodel == mdLiePerspective && nisot::geodesic_movement) pmodel = mdGeodesic;
|
||||
if(pmodel == mdGeodesic && !nisot::geodesic_movement) pmodel = mdLiePerspective;
|
||||
});
|
||||
}
|
||||
#if CAP_CRYSTAL && MAXMDIM >= 4
|
||||
crystal::add_crystal_transform('x');
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user