Today’s second glitch:
This needs a comma after damaged; you could remove all of no matter how damaged and keep the essential meaning of the sentence. Also, if you use a comma to set off one end of an “aside” phrase (the comma after walls), you need one on the other end, too.
The entire city was in ruins. The group of weary travellers looked upon it with great sorrow but also with relief. Any walls, no matter how damaged, were better than none, after all.