Correct a mistake in edit.c so that it does not mistakenly use RLE if the object's Dir variable is different than the previous object.