mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-04 08:14:08 +00:00
Hypersian Rug forbidden when using 3D engine
This commit is contained in:
parent
175c061ab4
commit
21f801d691
@ -966,7 +966,7 @@ namespace conformal {
|
|||||||
dialog::addBreak(100);
|
dialog::addBreak(100);
|
||||||
dialog::addItem(XLAT("history mode"), 'a');
|
dialog::addItem(XLAT("history mode"), 'a');
|
||||||
#if CAP_RUG
|
#if CAP_RUG
|
||||||
dialog::addItem(XLAT("hypersian rug mode"), 'u');
|
if(GDIM == 2) dialog::addItem(XLAT("hypersian rug mode"), 'u');
|
||||||
#endif
|
#endif
|
||||||
dialog::addBack();
|
dialog::addBack();
|
||||||
|
|
||||||
@ -981,7 +981,7 @@ namespace conformal {
|
|||||||
else if(uni == 'p')
|
else if(uni == 'p')
|
||||||
projectionDialog();
|
projectionDialog();
|
||||||
#if CAP_RUG
|
#if CAP_RUG
|
||||||
else if(uni == 'u')
|
else if(uni == 'u' && DIM == 2)
|
||||||
pushScreen(rug::show);
|
pushScreen(rug::show);
|
||||||
#endif
|
#endif
|
||||||
else if(uni == 's') {
|
else if(uni == 's') {
|
||||||
|
@ -216,7 +216,7 @@ void showTorusConfig() {
|
|||||||
dialog::addSelItem(XLAT("scale factor"), fts(vid.scale), 'z');
|
dialog::addSelItem(XLAT("scale factor"), fts(vid.scale), 'z');
|
||||||
|
|
||||||
#if CAP_RUG
|
#if CAP_RUG
|
||||||
dialog::addBoolItem(XLAT("hypersian rug mode"), (rug::rugged), 'u');
|
if(DIM == 2) dialog::addBoolItem(XLAT("hypersian rug mode"), (rug::rugged), 'u');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
dialog::addItem("activate", 'a');
|
dialog::addItem("activate", 'a');
|
||||||
@ -256,7 +256,7 @@ void showTorusConfig() {
|
|||||||
});
|
});
|
||||||
else if(uni == 'z') editScale();
|
else if(uni == 'z') editScale();
|
||||||
#if CAP_RUG
|
#if CAP_RUG
|
||||||
else if(uni == 'u') rug::select();
|
else if(uni == 'u' && DIM == 2) rug::select();
|
||||||
#endif
|
#endif
|
||||||
else if(doexiton(sym, uni))
|
else if(doexiton(sym, uni))
|
||||||
popScreen();
|
popScreen();
|
||||||
|
@ -385,6 +385,7 @@ namespace geom3 {
|
|||||||
|
|
||||||
#if MAXMDIM >= 4
|
#if MAXMDIM >= 4
|
||||||
void switch_always3() {
|
void switch_always3() {
|
||||||
|
if(rug::rugged) rug::close();
|
||||||
geom3::always3 = !geom3::always3;
|
geom3::always3 = !geom3::always3;
|
||||||
need_reset_geometry = true;
|
need_reset_geometry = true;
|
||||||
swapmatrix(View);
|
swapmatrix(View);
|
||||||
@ -414,6 +415,7 @@ void switch_always3() {
|
|||||||
|
|
||||||
void switch_fpp() {
|
void switch_fpp() {
|
||||||
#if MAXMDIM >= 4
|
#if MAXMDIM >= 4
|
||||||
|
if(rug::rugged) rug::close();
|
||||||
if(!geom3::always3) {
|
if(!geom3::always3) {
|
||||||
geom3::always3 = true;
|
geom3::always3 = true;
|
||||||
geom3::wall_height = 1.5;
|
geom3::wall_height = 1.5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user