Changeset - r17900:60dca4a1ab90
[Not reviewed]
master
0 1 0
planetmaker - 13 years ago 2011-08-04 14:04:15
planetmaker@openttd.org
(svn r22714) -Fix: If there's no point in opening the rail toolbar, don't open it for people who use hotkeys either rather than only for those using GUI elements
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/rail_gui.cpp
Show inline comments
 
@@ -31,6 +31,7 @@
 
#include "core/geometry_func.hpp"
 
#include "hotkeys.h"
 
#include "engine_base.h"
 
#include "vehicle_func.h"
 

	
 
#include "station_map.h"
 
#include "tunnelbridge_map.h"
 
@@ -849,6 +850,7 @@ Window *ShowBuildRailToolbar(RailType ra
 

	
 
EventState RailToolbarGlobalHotkeys(uint16 key, uint16 keycode)
 
{
 
	if (!CanBuildVehicleInfrastructure(VEH_TRAIN)) return ES_NOT_HANDLED;
 
	extern RailType _last_built_railtype;
 
	int num = CheckHotkeyMatch<BuildRailToolbarWindow>(_railtoolbar_hotkeys, keycode, NULL, true);
 
	if (num == -1) return ES_NOT_HANDLED;
0 comments (0 inline, 0 general)