The issue was being caused by the incorrect usage of integer casts. Basically, a negative float with a value like -1.2 would be turned into -1, while the result needed in our case is -2, which, thankfully, floor() returns.
This pull request also removes the player offset entirely, as its not needed anymore.
The only visual glitch remaining is the minor pixel dithering on the border between the negative and positive coordinates.
The issue was being caused by the incorrect usage of integer casts. Basically, a negative float with a value like -1.2 would be turned into -1, while the result needed in our case is -2, which, thankfully, floor() returns.
This pull request also removes the player offset entirely, as its not needed anymore.
The only visual glitch remaining is the minor pixel dithering on the border between the negative and positive coordinates.