2d3d:: remove 3D options from the menu if not available

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:43:02 +02:00
1 parent eb822f195b
commit 0dc552bac4
2 files changed
+14 -3

No files matched your search

+6 -2
View File
@@ -384,12 +384,14 @@ namespace geom3 {
}
}
void switch_always3() {
#if MAXMDIM >= 4
void switch_always3() {
geom3::always3 = !geom3::always3;
need_reset_geometry = true;
swapmatrix(View);
callhooks(hooks_swapdim);
}
#endif
void switch_tpp() {
if(pmodel == mdDisk && vid.camera_angle) {
@@ -412,6 +414,7 @@ namespace geom3 {
}
void switch_fpp() {
#if MAXMDIM >= 4
if(!geom3::always3) {
geom3::always3 = true;
geom3::wall_height = 1.5;
@@ -437,7 +440,8 @@ namespace geom3 {
swapmatrix(View);
callhooks(hooks_swapdim);
}
}
#endif
}
}