1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-29 19:40:35 +00:00

arb:: fixed cycle_length and repeat_value for conversion

This commit is contained in:
Zeno Rogue 2022-06-23 09:33:41 +02:00
parent 7480d1e0ea
commit 61fcf62727

View File

@ -1514,7 +1514,8 @@ EX void convert() {
int t = s->type;
sh.vertices.clear();
sh.connections.clear();
sh.repeat_value = id.modval;
sh.cycle_length = id.modval;
sh.repeat_value = t / id.modval;
for(int j=0; j<t; j++) {
auto co = currentmap->get_corner(s, j);
sh.vertices.push_back(co);