much of the city was in savage disrepair , and impoverished shanties had replaced more solid construction , in addition to engulfing the land around the city 's walls for several hundred yards in every direction .