From 48702739fdca6cf6b5044a8ddcba41d3f9331624 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 13 Jul 2022 20:59:20 +0200 Subject: [PATCH] reg3:: support for >= 32 move directions --- reg3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reg3.cpp b/reg3.cpp index e08d8204..80013222 100644 --- a/reg3.cpp +++ b/reg3.cpp @@ -2284,7 +2284,7 @@ EX namespace reg3 { else { heptagon *at = parent; while(other[pos] != ',') { - int dir = (other[pos++] & 31) - 1; + int dir = other[pos++] - 'a'; at = at->cmove(dir); } res = at;