If the applicant, before the commencement of the proceeding, has tendered to the parties owning or occupying the lands or mining claims a sum equal to or more than the amount of damages assessed by the commissioners, all of the costs and expenses shall be paid by the party or parties owning the lands or claims affected by the right-of-way and who appeared and resisted the claim of the applicant.
SDCL 45-5-14