LixD
LixD copied to clipboard
Next-level cache should update after solving
Lix 0.9.40
- Have three unsolved singleplayer levels: A, B, and C, in this order, in direct succession.
- From the singleplayer browser, play B.
- Solve B.
- Go back to the singleplayer level browser, play A.
- Solve or exit A to go to the end-of-level screen.
Expected: End-of-level screen offers B as next level and C as next unsolved level.
Observed: End-of-level screen offers only B.
Speculation: The cache for checkmarks and the cache to find the next unsolved level are two different caches. The checkmarks are properly updated after solving B. But the next-level cache is not rebuilt, not even the node for B, after solving B. That cache, too, should be updated.
Maybe it's worth it to merge the two caches in the long term.