mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-20 18:59:36 +00:00
fixup -- stars also do not have_valence
This commit is contained in:
parent
1b832b4a54
commit
9497eb31b9
@ -479,7 +479,6 @@ static void reduce_gcd(int& a, int b) {
|
|||||||
|
|
||||||
EX void compute_vertex_valence(arb::arbi_tiling& ac) {
|
EX void compute_vertex_valence(arb::arbi_tiling& ac) {
|
||||||
int tcl = -1;
|
int tcl = -1;
|
||||||
ac.have_valence = true;
|
|
||||||
|
|
||||||
for(auto& sh: ac.shapes)
|
for(auto& sh: ac.shapes)
|
||||||
sh.cycle_length = isize(sh.vertices) / sh.repeat_value;
|
sh.cycle_length = isize(sh.vertices) / sh.repeat_value;
|
||||||
@ -524,6 +523,7 @@ EX void compute_vertex_valence(arb::arbi_tiling& ac) {
|
|||||||
|
|
||||||
if(cgflags & qAFFINE) return;
|
if(cgflags & qAFFINE) return;
|
||||||
if(ac.is_star) return;
|
if(ac.is_star) return;
|
||||||
|
ac.have_valence = true;
|
||||||
|
|
||||||
for(auto& sh: ac.shapes) {
|
for(auto& sh: ac.shapes) {
|
||||||
int n = sh.size();
|
int n = sh.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user