Fix wall alignment with fortresses.

Take into account the 2×2 size.

Fixes ticket:1520 and ticket:3236.