mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-21 17:07:40 +00:00
implemented new geometries: cylinder and (only one for now) Mobius band
This commit is contained in:
6
rug.cpp
6
rug.cpp
@@ -575,7 +575,7 @@ void buildRug() {
|
||||
|
||||
need_mouseh = true;
|
||||
good_shape = false;
|
||||
if(torus) {
|
||||
if(euwrap) {
|
||||
good_shape = true;
|
||||
buildTorusRug();
|
||||
return;
|
||||
@@ -812,7 +812,7 @@ int divides = 0;
|
||||
bool stop = false;
|
||||
|
||||
bool subdivide_further() {
|
||||
if(torus) return false;
|
||||
if(euwrap) return false;
|
||||
return isize(points) * 4 < vertex_limit;
|
||||
}
|
||||
|
||||
@@ -991,7 +991,7 @@ void addNewPoints() {
|
||||
if(anticusp_factor && detect_cusps())
|
||||
return;
|
||||
|
||||
if(torus || qvalid == isize(points)) {
|
||||
if(euwrap || qvalid == isize(points)) {
|
||||
subdivide();
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user