1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 18:27:55 +00:00

added some missing guards

This commit is contained in:
Zeno Rogue
2025-06-22 15:41:43 +02:00
parent d4bb23b8eb
commit 537a3b8779
10 changed files with 49 additions and 6 deletions

View File

@@ -1556,12 +1556,14 @@ EX namespace ccolor {
#define CCO [] (cell *c, data& cco) -> color_t
bool is_mirrored(cell *c) {
#if CAP_ARCM
if(arcm::in()) {
int id = arcm::id_of(c->master);
int tid = arcm::current.tilegroup[id];
int tid2 = arcm::current.tilegroup[id^1];
return (id&1) && (tid != tid2);
}
#endif
if(arb::in()) {
int id = shvid(c);
auto& sh = arb::current.shapes[id];
@@ -1671,6 +1673,7 @@ EX namespace ccolor {
CCO { return cco.ctab[patterns::sevenval(c)]; },
{0xC00000, 0xC08000, 0xC0C000, 0x00C000, 0xC0C0, 0x00C0, 0xC000C0});
#if CAP_CRYSTAL
EX data crystal_colors = data("Crystal coordinates", [] { return cryst; },
CCO { return crystal::colorize(c, 'K'); }, {});
@@ -1685,6 +1688,7 @@ EX namespace ccolor {
EX data crystal_diagonal = data("Crystal diagonal", [] { return cryst; },
CCO { return crystal::colorize(c, '/'); }, {});
#endif
EX data nil_penrose = data("Nil staircase", [] { return nil; },
CCO { return nilv::colorize(c, '/'); }, {});
@@ -1802,7 +1806,10 @@ EX namespace ccolor {
&shape, &shape_mirror,
&threecolor, &football, &chessboard,
&landscape, &landscape_dark, &seven, &randbw, &distance,
&crystal_colors, &crystal_cage, &crystal_hyperplanes, &crystal_honeycomb, &crystal_diagonal, &nil_penrose,
#if CAP_CRYSTAL
&crystal_colors, &crystal_cage, &crystal_hyperplanes, &crystal_honeycomb, &crystal_diagonal,
#endif
&nil_penrose,
&zebra_pattern, &zebra_triangles, &zebra_stripes, &emerald_pattern, &palace_elements, &palace_domains,
#if CAP_FIELD
&field_c, &field_d, &field_n, &field_s,