I didn't see the walls blocking torpedoes. At least, Gunshin's (?) Commander was still getting hit by torpedoes despite his wall, possibly because the Commander is deep in the water and torpedo launchers are on the surface. In any case, if the torpedoes are getting blocked, it's because they were hitting the walls.