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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user