Patch village distance checking to use floats instead of ints, to avoid int wrapping