Fix unreserving through a green PBS signal not setting the state to red.

This also had the side effect of failed reservation attempts through
a reserve-through signal leaving the signal erroneously set to green.
This commit is contained in:
Jonathan G Rennison
2016-03-01 20:52:54 +00:00
parent 83369d5e71
commit 1bb3024534
4 changed files with 17 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ private:
tile = TILE_ADD(tile, diff);
}
} else if (tile != m_res_fail_tile || td != m_res_fail_td) {
UnreserveRailTrack(tile, TrackdirToTrack(td));
UnreserveRailTrackdir(tile, td);
}
return (tile != m_res_dest || td != m_res_dest_td) && (tile != m_res_fail_tile || td != m_res_fail_td);
}