diff options
Diffstat (limited to 'src/coord.c')
| -rw-r--r-- | src/coord.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coord.c b/src/coord.c index 11bed25..a9df9fd 100644 --- a/src/coord.c +++ b/src/coord.c | |||
| @@ -435,7 +435,7 @@ move_htrfin(Move m, uint64_t ind) | |||
| 435 | a = move_cornershtrfin(m, ind / (24*24*24)); | 435 | a = move_cornershtrfin(m, ind / (24*24*24)); |
| 436 | bm = eposm_mtable[m][ind%24] % 24; | 436 | bm = eposm_mtable[m][ind%24] % 24; |
| 437 | bs = eposs_mtable[m][(ind/24)%24] % 24; | 437 | bs = eposs_mtable[m][(ind/24)%24] % 24; |
| 438 | be = epose_mtable[m][ind/(24*24)] % 24; | 438 | be = epose_mtable[m][(ind/(24*24))%24] % 24; |
| 439 | b = (be * 24 + bs) * 24 + bm; | 439 | b = (be * 24 + bs) * 24 + bm; |
| 440 | 440 | ||
| 441 | return a * (24*24*24) + b; | 441 | return a * (24*24*24) + b; |
| @@ -563,7 +563,7 @@ init_cornershtrfin() | |||
| 563 | continue; | 563 | continue; |
| 564 | for (m = U; m < NMOVES; m++) { | 564 | for (m = U; m < NMOVES; m++) { |
| 565 | if (moveset_htr.allowed(m)) { | 565 | if (moveset_htr.allowed(m)) { |
| 566 | c = apply_move(m, (Cube){.cp = j}).cp; | 566 | c = cp_mtable[m][j]; |
| 567 | if (cornershtrfin_ind[c] == -1) { | 567 | if (cornershtrfin_ind[c] == -1) { |
| 568 | cornershtrfin_ind[c] = n; | 568 | cornershtrfin_ind[c] = n; |
| 569 | cornershtrfin_ant[n] = c; | 569 | cornershtrfin_ant[n] = c; |
