From bef884c9dcb83525c2658053b242336981a2c546 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 6 Oct 2022 10:08:21 +0200 Subject: [PATCH] fixed arcm colors for mirrorless --- pattern2.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pattern2.cpp b/pattern2.cpp index df5d6f11..d443dd66 100644 --- a/pattern2.cpp +++ b/pattern2.cpp @@ -1792,8 +1792,12 @@ EX namespace patterns { case 'A': #if CAP_ARCM if(arcm::in()) { - int id = arcm::current.tilegroup[arcm::id_of(c->master)]; - return colortables[(id&1) ? 'M' : 'A'][id/2]; + int id = arcm::id_of(c->master); + int tid = arcm::current.tilegroup[id]; + int tid2 = arcm::current.tilegroup[id^1]; + bool mirrored = (id&1) && (tid != tid2); + if(tid2 >= 0) tid = min(tid, tid2); + return colortables[mirrored ? 'M' : 'A'][tid]; } #endif if(arb::in()) {