Changeset - r16874:2ba4011842d4
[Not reviewed]
master
0 1 0
alberth - 13 years ago 2010-12-24 14:48:38
alberth@openttd.org
(svn r21619) -Fix [FS#4327]: Don't copy direction bits when restarting a rail selection.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/viewport.cpp
Show inline comments
 
@@ -2176,7 +2176,7 @@ void VpStartPlaceSizing(TileIndex tile, 
 
		_thd.selstart.y += TILE_SIZE / 2;
 
	}
 

	
 
	HighLightStyle others = _thd.place_mode & ~HT_DRAG_MASK;
 
	HighLightStyle others = _thd.place_mode & ~(HT_DRAG_MASK | HT_DIR_MASK);
 
	if ((_thd.place_mode & HT_DRAG_MASK) == HT_RECT) {
 
		_thd.place_mode = HT_SPECIAL | others;
 
		_thd.next_drawstyle = HT_RECT | others;
 
@@ -2813,7 +2813,7 @@ EventState VpHandlePlaceSizingDrag()
 
	/* mouse button released..
 
	 * keep the selected tool, but reset it to the original mode. */
 
	_special_mouse_mode = WSM_NONE;
 
	HighLightStyle others = _thd.next_drawstyle & ~HT_DRAG_MASK;
 
	HighLightStyle others = _thd.place_mode & ~(HT_DRAG_MASK | HT_DIR_MASK);
 
	if ((_thd.next_drawstyle & HT_DRAG_MASK) == HT_RECT) {
 
		_thd.place_mode = HT_RECT | others;
 
	} else if (_thd.select_method & VPM_SIGNALDIRS) {
0 comments (0 inline, 0 general)