09-27-2021, 11:23 AM
I'm having trouble identifying the cause of a bug that Alek and Mihaw found in Lielow.
The game uses localState to mark the kings. Each player's king is graphically marked by a red outline. In the attached trial, white's king (the white piece with a red ring) has made a capture, black moved, and now it is white's turn again. The problem is this: No matter where white moves their king, the red ring disappears. The tooltip also show that the localState is no longer set to 1. Isn't localState supposed to follow the piece when it moves? What is happening here? I don't know how to fix this.
The game uses localState to mark the kings. Each player's king is graphically marked by a red outline. In the attached trial, white's king (the white piece with a red ring) has made a capture, black moved, and now it is white's turn again. The problem is this: No matter where white moves their king, the red ring disappears. The tooltip also show that the localState is no longer set to 1. Isn't localState supposed to follow the piece when it moves? What is happening here? I don't know how to fix this.