1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-11 23:06:00 +00:00

added some guards

This commit is contained in:
Zeno Rogue
2022-09-29 15:12:56 +02:00
parent 628f19a0a0
commit 1c24daea77
2 changed files with 8 additions and 2 deletions

View File

@@ -1791,7 +1791,9 @@ EX void convert() {
sh.cycle_length = id.modval;
sh.repeat_value = t / id.modval;
sh.flags = hr::pseudohept(s) ? arcm::sfPH : 0;
#if CAP_ARCM
if(arcm::in() && arcm::linespattern(s)) { sh.flags |= arcm::sfLINE; ac.have_line = true; }
#endif
for(int j=0; j<t; j++) {
auto co = currentmap->get_corner(s, j);
sh.vertices.push_back(co);