libdoom64: Merged mobj-avoid-dropoff changes from libdoom

Todo: This algorithm should really be commonized...