ClassiCube-Client
ClassiCube-Client copied to clipboard
Third person view bugs
I don't know if those bugs have already been reported, slap me 53.7 times if so.
When in third person view and inside water or lava, the blue/orange fog appears based on the player's position and not the camera's position. For example, if the player is in water but the camera is outside of it, you see the blue fog when you shouldn't.
And when in rear third person view, the camera doesn't check for blocks at all, and happily goes through everything. Oddly, this doesn't happen in front third person view.
Both bugs can be fixed with the same code basically, we have code to determine how far away a block is in front of the player, but not behind the player. If we add that in we can determine where the "camera" is at all times.