Make getdistance return maximum value only if the given objects are in different worldspaces (Fixes #1895)
Use CellId::mWorldspace to find out whether objects are in the same worldspace