Changeset - r17362:708316e71331
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2011-02-20 18:32:42
terkhen@openttd.org
(svn r22118) -Fix [FS#4525]: The refit window was not correctly updated after selecting with Ctrl+Click (Regiovogel).
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle_gui.cpp
Show inline comments
 
@@ -795,7 +795,12 @@ struct RefitWindow : public Window {
 
				this->click_x = GetClickPosition(pt.x - nwi->pos_x);
 
				this->SetSelectedVehicles(pt.x - nwi->pos_x);
 
				this->SetWidgetDirty(VRW_VEHICLE_PANEL_DISPLAY);
 
				if (!_ctrl_pressed) SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this);
 
				if (!_ctrl_pressed) {
 
					SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this);
 
				} else {
 
					/* The vehicle selection has changed. */
 
					this->InvalidateData(2);
 
				}
 
				break;
 
			}
 

	
0 comments (0 inline, 0 general)