Fix problem of intersection of doors

Sometimes train's doors are exactly on the edges of walls.
This commit fixes this problem.
4 jobs for 300-tracks-for-trains in 9 minutes and 28 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Configure
passed #106400
linux
configure-linux

00:00:04

 
  Compile
passed #106401
linux
make-linux

00:01:41

 
  Unit Test
passed #106402
linux
test

00:07:05

 
  Dev Test
passed #106403
linux
dev

00:00:36