MADS: Fix calculating player depth in the scene