Changeset - r5554:27478b5606bd
[Not reviewed]
master
0 1 0
Darkvater - 18 years ago 2007-01-07 00:19:57
darkvater@openttd.org
(svn r7936) -Fix (r4987, old-rev): Only update the signals and YAPF cache on a DC_EXEC action for bridge-building
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.c
Show inline comments
 
@@ -370,8 +370,11 @@ not_valid_below:;
 
		}
 
	}
 

	
 
	SetSignalsOnBothDir(tile_start, AxisToTrack(direction));
 
	YapfNotifyTrackLayoutChange(tile_start, AxisToTrack(direction));
 
	if (flags & DC_EXEC) {
 
		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)
 
	 * It's unnecessary to execute this command every time for every bridge. So it is done only
0 comments (0 inline, 0 general)