mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-17 07:07:38 +00:00
make sure that mirror placement treats vertices differently
This commit is contained in:
@@ -1205,6 +1205,10 @@ int degree(heptagon *h) {
|
|||||||
return isize(current.adjacent[id_of(h)]);
|
return isize(current.adjacent[id_of(h)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_vertex(heptagon *h) {
|
||||||
|
return id_of(h) >= 2 * current.N;
|
||||||
|
}
|
||||||
|
|
||||||
int valence() {
|
int valence() {
|
||||||
if(PURE) return arcm::current.N;
|
if(PURE) return arcm::current.N;
|
||||||
if(BITRUNCATED) return 3;
|
if(BITRUNCATED) return 3;
|
||||||
|
@@ -1141,6 +1141,7 @@ namespace mirror {
|
|||||||
// we go by heptagons in Archimedean,
|
// we go by heptagons in Archimedean,
|
||||||
bool equal(heptspin h1, heptspin h2, int lev) {
|
bool equal(heptspin h1, heptspin h2, int lev) {
|
||||||
if(h1.at->degree() != h2.at->degree()) return false;
|
if(h1.at->degree() != h2.at->degree()) return false;
|
||||||
|
if(arcm::is_vertex(h1.at) != arcm::is_vertex(h2.at)) return false;
|
||||||
if(lev) for(int i=0; i<h1.at->degree(); i++) {
|
if(lev) for(int i=0; i<h1.at->degree(); i++) {
|
||||||
heptspin h11 = h1 + i + wstep;
|
heptspin h11 = h1 + i + wstep;
|
||||||
heptspin h21 = h2 + i + wstep;
|
heptspin h21 = h2 + i + wstep;
|
||||||
|
Reference in New Issue
Block a user