Fix green flicker of squares on invalid move #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-green-square-flicker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With this PR, the flickering of the squares are fixed.
The flickering happened because we colored them green on the player's move.
If it was an invalid move, the server responded with the old position (after a couple of frames), and the squares were colored normal again.
Worst code I've ever seen. Accepted.