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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user