Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

撤回bug:点选图片后撤回,新可选的图片依然可选 #27

Open
Roan123 opened this issue Sep 21, 2022 · 1 comment
Open

Comments

@Roan123
Copy link

Roan123 commented Sep 21, 2022

选择任意模式开始后:
image
点选小鸭后:
image
小鸡和小鱼可选,点击撤回后,小鸡和小鱼依然可选:
image

@Xiao-Chenguang
Copy link

Xiao-Chenguang commented Sep 23, 2022

也发现这个问题了。不太懂typescript,提供一点思路:
src/core/game.ts中doRevert() 的439行添加代码恢复覆盖关系:

block.higherThanBlocks.forEach((higherThanBlock) => {
_.push(higherThanBlock.lowerThanBlocks, (lowerThanBlock) => {
return lowerThanBlock.id === block.id;
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants