mirror of https://github.com/OpenTTD/OpenTTD
(svn r7957) -Backport from trunk (r7936):
- Only update the signals and YAPF cache on a DC_EXEC action for bridge-buildingrelease/0.5
parent
fbfa0b8009
commit
04d77258c5
|
@ -411,8 +411,11 @@ not_valid_below:;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SetSignalsOnBothDir(tile_start, AxisToTrack(direction));
|
if (flags & DC_EXEC) {
|
||||||
YapfNotifyTrackLayoutChange(tile_start, AxisToTrack(direction));
|
Axis axis = AxisToTrack(direction);
|
||||||
|
SetSignalsOnBothDir(tile_start, axis);
|
||||||
|
YapfNotifyTrackLayoutChange(tile_start, axis);
|
||||||
|
}
|
||||||
|
|
||||||
/* for human player that builds the bridge he gets a selection to choose from bridges (DC_QUERY_COST)
|
/* for human player that builds the bridge he gets a selection to choose from bridges (DC_QUERY_COST)
|
||||||
* It's unnecessary to execute this command every time for every bridge. So it is done only
|
* It's unnecessary to execute this command every time for every bridge. So it is done only
|
||||||
|
|
Loading…
Reference in New Issue