1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-22 05:59:10 +00:00

(svn r3776) Replace many ints and magic numbers by Direction, DiagDirection and friends

This commit is contained in:
tron
2006-03-06 20:28:28 +00:00
parent fc1e9c5a92
commit 2d3c28f2b3
10 changed files with 83 additions and 71 deletions

View File

@@ -1755,13 +1755,13 @@ make_red:
}
bool UpdateSignalsOnSegment(TileIndex tile, byte direction)
bool UpdateSignalsOnSegment(TileIndex tile, Direction dir)
{
SetSignalsData ssd;
int result = -1;
DiagDirection direction = DirToDiagDir(dir);
ssd.cur_stack = 0;
direction >>= 1;
for (;;) {
// go through one segment and update all signals pointing into that segment.